|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.server.kerberos.shared.messages.components.Ticket
public class Ticket
Ticket message component as handed out by the ticket granting service.
| Field Summary | |
|---|---|
static int |
TICKET_VNO
Constant for the Ticket version number (5) |
| Fields inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
parent |
| Constructor Summary | |
|---|---|
Ticket()
Creates a new instance of Ticket. |
|
Ticket(int tktvno,
javax.security.auth.kerberos.KerberosPrincipal serverPrincipal,
EncryptedData encPart)
Creates a new instance of Ticket. |
|
Ticket(javax.security.auth.kerberos.KerberosPrincipal serverPrincipal,
EncryptedData encPart)
Creates a new instance of Ticket. |
|
| Method Summary | |
|---|---|
int |
computeLength()
Compute the Ticket length Ticket : 0x61 L1 Ticket [APPLICATION 1] | +--> 0x30 L2 Ticket SEQUENCE | +--> 0xA0 L3 tkt-vno tag | | | +--> 0x02 L3-1 tkt-vno (int, 5) | +--> 0xA1 L4 realm tag | | | +--> 0x1B L4-1 realm (KerberosString) | +--> 0xA2 L5 sname (PrincipalName) | +--> 0xA3 L6 enc-part (EncryptedData) |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the Ticket message to a PDU. |
EncryptedData |
getEncPart()
Returns the EncryptedData. |
EncTicketPart |
getEncTicketPart()
Returns the EncTicketPart. |
java.lang.String |
getRealm()
Returns the server realm. |
javax.security.auth.kerberos.KerberosPrincipal |
getServerPrincipal()
Returns the server KerberosPrincipal. |
PrincipalName |
getSName()
Returns the server PrincipalName. |
int |
getTktVno()
Returns the version number. |
void |
setEncPart(EncryptedData encPart)
Set the encrypted ticket part |
void |
setEncTicketPart(EncTicketPart decryptedPart)
Sets the EncTicketPart. |
void |
setRealm(java.lang.String realm)
Set the server realm |
void |
setServerPrincipal(javax.security.auth.kerberos.KerberosPrincipal serverPrincipal)
Set the server KerberosPrincipal |
void |
setSName(PrincipalName sName)
Set the server principalName |
void |
setTktVno(int tktvno)
Set the ticket version number |
| Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TICKET_VNO
Ticket version number (5)
| Constructor Detail |
|---|
public Ticket(javax.security.auth.kerberos.KerberosPrincipal serverPrincipal,
EncryptedData encPart)
throws InvalidTicketException
serverPrincipal - The server principalencPart - The encoded part
InvalidTicketExceptionpublic Ticket()
public Ticket(int tktvno,
javax.security.auth.kerberos.KerberosPrincipal serverPrincipal,
EncryptedData encPart)
throws InvalidTicketException
tktvno - The Kerberos version numberserverPrincipal - The server principalencPart - The encoded part
InvalidTicketException| Method Detail |
|---|
public void setEncTicketPart(EncTicketPart decryptedPart)
EncTicketPart.
decryptedPart - public int getTktVno()
public void setTktVno(int tktvno)
tktvno - the ticket version numberpublic PrincipalName getSName()
PrincipalName.
PrincipalName.public javax.security.auth.kerberos.KerberosPrincipal getServerPrincipal()
KerberosPrincipal.
KerberosPrincipal.public void setSName(PrincipalName sName)
sName - the server principalName
public void setServerPrincipal(javax.security.auth.kerberos.KerberosPrincipal serverPrincipal)
throws InvalidTicketException
serverPrincipal - the server KerberosPrincipal
InvalidTicketExceptionpublic java.lang.String getRealm()
public void setRealm(java.lang.String realm)
realm - the server realmpublic EncryptedData getEncPart()
EncryptedData.
EncryptedData.public void setEncPart(EncryptedData encPart)
encPart - the encrypted ticket partpublic EncTicketPart getEncTicketPart()
EncTicketPart.
EncTicketPart.public int computeLength()
computeLength in interface org.apache.directory.shared.asn1.Asn1ObjectcomputeLength in class org.apache.directory.shared.asn1.AbstractAsn1Object
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws org.apache.directory.shared.asn1.codec.EncoderException
encode in interface org.apache.directory.shared.asn1.Asn1Objectencode in class org.apache.directory.shared.asn1.AbstractAsn1Objectbuffer - The buffer where to put the PDU. It should have been allocated
before, with the right size.
org.apache.directory.shared.asn1.codec.EncoderException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||