APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.krb5.internal.util

public final Class KerberosString

extends Object
Class Inheritance
Imports
java.io.IOException, sun.security.util.DerValue

Implements the ASN.1 KerberosString type.
KerberosString  ::= GeneralString (IA5String)
This definition reflects the Network Working Group RFC 4120 specification available at http://www.ietf.org/rfc/rfc4120.txt.

Field Summary

Modifier and TypeField and Description
public static final boolean
MSNAME

RFC 4120 defines KerberosString as GeneralString (IA5String), which only includes ASCII characters.

private final String
s

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public DerValue
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

MSNAMEback to summary
public static final boolean MSNAME

RFC 4120 defines KerberosString as GeneralString (IA5String), which only includes ASCII characters. However, most implementations have been known to use GeneralString to contain UTF-8 encoding. The following system property is defined. When set as true, KerberosString is encoded as UTF-8. Otherwise, it's ASCII. The default is true. Note that this only affects the byte encoding, the tag of the ASN.1 type is still GeneralString.

sback to summary
private final String s

Constructor Detail

KerberosStringback to summary
public KerberosString(String s)
KerberosStringback to summary
public KerberosString(DerValue der) throws IOException

Method Detail

toDerValueback to summary
public DerValue toDerValue()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.