Package org.bouncycastle.asn1
Class OIDTokenizer
- java.lang.Object
-
- org.bouncycastle.asn1.OIDTokenizer
-
public class OIDTokenizer extends Object
Class for breaking up an OID into it's component tokens, ala java.util.StringTokenizer. We need this class as some of the lightweight Java environment don't support classes like StringTokenizer.
-
-
Constructor Summary
Constructors Constructor Description OIDTokenizer(String oid)
Base constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMoreTokens()
Return whether or not there are more tokens in this tokenizer.String
nextToken()
Return the next token in the underlying String.
-
-
-
Constructor Detail
-
OIDTokenizer
public OIDTokenizer(String oid)
Base constructor.- Parameters:
oid
- the string representation of the OID.
-
-
Method Detail
-
hasMoreTokens
public boolean hasMoreTokens()
Return whether or not there are more tokens in this tokenizer.- Returns:
- true if there are more tokens, false otherwise.
-
nextToken
public String nextToken()
Return the next token in the underlying String.- Returns:
- the next token.
-
-