X500NameTokenizer (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.asn1.x500.style

## Class X500NameTokenizer

- java.lang.Object
- - org.bouncycastle.asn1.x500.style.X500NameTokenizer

-     public class X500NameTokenizer
      extends java.lang.Object

  class for breaking up an X500 Name 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 and Description
    `X500NameTokenizer(java.lang.String oid)`
    `X500NameTokenizer(java.lang.String oid, char separator)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `hasMoreTokens()`
    `java.lang.String` | `nextToken()`
    `java.lang.String` | `remaining()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### X500NameTokenizer

          public X500NameTokenizer(java.lang.String oid)

    - #### X500NameTokenizer

          public X500NameTokenizer(java.lang.String oid,
                                   char separator)

  - ### Method Detail

    - #### hasMoreTokens

          public boolean hasMoreTokens()

    - #### nextToken

          public java.lang.String nextToken()

    - #### remaining

          public java.lang.String remaining()