Class KerberosName

java.lang.Object
org.mozilla.jss.netscape.security.extensions.KerberosName

public class KerberosName extends Object
This represents a KerberosName as defined in RFC 1510. KerberosName ::= SEQUENCE { realm [0] Realm, principalName [1] CertPrincipalName -- defined above } CertPrincipalName ::= SEQUENCE { name-type[0] INTEGER, name-string[1] SEQUENCE OF UTF8String }
Version:
$Revision$, $Date$
  • Field Details

    • OID

      public static final int[] OID
    • KRB5_PRINCIPAL_NAME

      public static final ObjectIdentifier KRB5_PRINCIPAL_NAME
    • m_realm

      private String m_realm
    • m_name_type

      private int m_name_type
    • m_name_strings

      private Vector<String> m_name_strings
  • Constructor Details

    • KerberosName

      public KerberosName(String realm, int name_type, Vector<String> name_strings)
  • Method Details

    • encode

      public void encode(OutputStream out) throws IOException
      Write the extension to the DerOutputStream.
      Parameters:
      out - the DerOutputStream to write the extension to.
      Throws:
      IOException - on encoding errors.
    • toByteArray

      public byte[] toByteArray() throws IOException
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • main

      public static void main(String[] argv)