Package netscape.security.extensions
Class KerberosName
- java.lang.Object
-
- netscape.security.extensions.KerberosName
-
public class KerberosName extends java.lang.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$
- Author:
- thomask
-
-
Field Summary
Fields Modifier and Type Field Description static ObjectIdentifier
KRB5_PRINCIPAL_NAME
static int[]
OID
-
Constructor Summary
Constructors Constructor Description KerberosName(java.lang.String realm, int name_type, java.util.Vector<java.lang.String> name_strings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(java.io.OutputStream out)
Write the extension to the DerOutputStream.static void
main(java.lang.String[] argv)
byte[]
toByteArray()
java.lang.String
toString()
-
-
-
Field Detail
-
OID
public static final int[] OID
-
KRB5_PRINCIPAL_NAME
public static final ObjectIdentifier KRB5_PRINCIPAL_NAME
-
-
Method Detail
-
encode
public void encode(java.io.OutputStream out) throws java.io.IOException
Write the extension to the DerOutputStream.- Parameters:
out
- the DerOutputStream to write the extension to.- Throws:
java.io.IOException
- on encoding errors.
-
toByteArray
public byte[] toByteArray() throws java.io.IOException
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
main
public static void main(java.lang.String[] argv)
-
-