Class CertificateInfo.X509NameTokenizer

  • Enclosing class:
    CertificateInfo

    public static class CertificateInfo.X509NameTokenizer
    extends java.lang.Object
    Class for breaking up an X500 Name into it's component tokens, similar to StringTokenizer. We need this class as some of the lightweight Java environments don't support classes such as StringTokenizer.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.StringBuffer buf  
      private int index  
      private java.lang.String oid  
    • Constructor Summary

      Constructors 
      Constructor Description
      X509NameTokenizer​(java.lang.String oid)
      Creates an X509NameTokenizer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasMoreTokens()
      Checks if the tokenizer has any tokens left.
      java.lang.String nextToken()
      Returns the next token.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • oid

        private java.lang.String oid
      • index

        private int index
      • buf

        private java.lang.StringBuffer buf
    • Constructor Detail

      • X509NameTokenizer

        public X509NameTokenizer​(java.lang.String oid)
        Creates an X509NameTokenizer.
        Parameters:
        oid - the oid that needs to be parsed
    • Method Detail

      • hasMoreTokens

        public boolean hasMoreTokens()
        Checks if the tokenizer has any tokens left.
        Returns:
        true if there are any tokens left, false if there aren't
      • nextToken

        public java.lang.String nextToken()
        Returns the next token.
        Returns:
        the next token