com.ibm.security.krb5.internal
Class Ticket
- java.lang.Object
com.ibm.security.krb5.internal.Ticket
All implemented interfaces:
java.lang.Cloneable
- public class Ticket
- extends java.lang.Object
- implements java.lang.Cloneable
This definition reflects the Network Working Group RFC 1510 specifications dated September 1993 and available at http://www.ietf.org/rfc/rfc1510.txt.
Constructor Summary
Constructor and Description |
---|
Ticket(byte[] data)
|
Ticket(com.ibm.security.util.DerValue encoding)
|
Ticket(Realm new_realm,PrincipalName new_sname,EncryptedData new_encPart)
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
asn1Encode()
Encodes a Ticket object.
|
|
clone()
|
getEncryptedPart()
|
|
getRealm()
|
|
getServer()
|
|
|
getVersionNumber()
|
|
parse(com.ibm.security.util.DerInputStream data,byte explicitTag,boolean optional)
Parse (unmarshal) a Ticket from a DER input stream.
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
Ticket
- public Ticket(Realm new_realm,
- PrincipalName new_sname,
- EncryptedData new_encPart)
Ticket
- public Ticket(byte[] data)
- throws Asn1Exception
- RealmException
- KrbApErrException
- java.io.IOException
Ticket
- public Ticket(com.ibm.security.util.DerValue encoding)
- throws Asn1Exception
- RealmException
- KrbApErrException
- java.io.IOException
Method Detail
clone
- public java.lang.Object clone()
Overrides:
clone
in class java.lang.Object
asn1Encode
- public byte[] asn1Encode()
- throws Asn1Exception
- java.io.IOException
Encodes a Ticket object.
Returns:
byte array of encoded ticket object.
Throws:
Asn1Exception
- if an error occurs while decoding an ASN1 encoded data. java.io.IOException
- if an I/O error occurs while reading encoded data. parse
- public static Ticket parse(com.ibm.security.util.DerInputStream data,
- byte explicitTag,
- boolean optional)
- throws Asn1Exception
- java.io.IOException
- RealmException
- KrbApErrException
Parse (unmarshal) a Ticket from a DER input stream. This form
parsing might be used when expanding a value which is part of
a constructed sequence and uses explicitly tagged type.
Parameters:
data
- the Der input stream value, which contains one or more marshaled value. explicitTag
- tag number. optional
- indicate if this data field is optional Returns:
an instance of Ticket.
Throws:
Asn1Exception
- on error. java.io.IOException
getVersionNumber
- public int getVersionNumber()
getRealm
- public Realm getRealm()
getServer
- public PrincipalName getServer( )
getEncryptedPart
- public EncryptedData getEncryptedPart( )