org.apache.directory.shared.kerberos.components
Class AdKdcIssued

java.lang.Object
  extended by org.apache.directory.shared.asn1.AbstractAsn1Object
      extended by org.apache.directory.shared.kerberos.components.AdKdcIssued
All Implemented Interfaces:
org.apache.directory.shared.asn1.Asn1Object

public class AdKdcIssued
extends org.apache.directory.shared.asn1.AbstractAsn1Object

The AdKdcIssued structure is used to store a AD-KDCIssued associated to a type. The ASN.1 grammar is :

 AD-KDCIssued            ::= SEQUENCE {
         ad-checksum     [0] Checksum,
         i-realm         [1] Realm OPTIONAL,
         i-sname         [2] PrincipalName OPTIONAL,
         elements        [3] AuthorizationData
 }
 

Author:
Apache Directory Project

Constructor Summary
AdKdcIssued()
          Creates a new instance of AdKdcIssued
 
Method Summary
 int computeLength()
          Compute the AD-KDCIssued length
 ByteBuffer encode(ByteBuffer buffer)
          Encode the AD-KDCIssued message to a PDU.
 Checksum getAdChecksum()
           
 AuthorizationData getElements()
           
 String getIRealm()
           
 PrincipalName getISName()
           
 void setAdChecksum(Checksum adChecksum)
           
 void setElements(AuthorizationData elements)
           
 void setIRealm(String irealm)
           
 void setISName(PrincipalName isname)
           
 String toString()
           
 String toString(String tabs)
           
 
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, wait, wait, wait
 

Constructor Detail

AdKdcIssued

public AdKdcIssued()
Creates a new instance of AdKdcIssued

Method Detail

getElements

public AuthorizationData getElements()
Returns:
the elements

setElements

public void setElements(AuthorizationData elements)
Parameters:
elements - the elements to set

getAdChecksum

public Checksum getAdChecksum()
Returns:
the adChecksum

setAdChecksum

public void setAdChecksum(Checksum adChecksum)
Parameters:
adChecksum - the adChecksum to set

getIRealm

public String getIRealm()
Returns:
the irealm

setIRealm

public void setIRealm(String irealm)
Parameters:
irealm - the irealm to set

getISName

public PrincipalName getISName()
Returns:
the isname

setISName

public void setISName(PrincipalName isname)
Parameters:
isname - the isname to set

computeLength

public int computeLength()
Compute the AD-KDCIssued length
 0x30 L1 AD-KDCIssued sequence
  |
  +--> 0xA1 L2 ad-checksum tag
  |     |
  |     +--> 0x30 L2-1 ad-checksum value ( Checksum )
  |
  +--> 0xA2 L3 i-realm tag
  |     |
  |     +--> 0x1B L3-1 i-realm value ( KerberosString )
  |
  +--> 0xA3 L4 i-sname tag
  |     |
  |     +--> 0x30 L4-1 i-sname value ( PrincipalName )
  |
  +--> 0xA4 L5 elements tag
        |
        +--> 0x30 L5-1 elements (AuthorizationData)
 


encode

public ByteBuffer encode(ByteBuffer buffer)
                  throws org.apache.directory.shared.asn1.EncoderException
Encode the AD-KDCIssued message to a PDU.

Specified by:
encode in interface org.apache.directory.shared.asn1.Asn1Object
Overrides:
encode in class org.apache.directory.shared.asn1.AbstractAsn1Object
Parameters:
buffer - The buffer where to put the PDU. It should have been allocated before, with the right size.
Returns:
The constructed PDU.
Throws:
org.apache.directory.shared.asn1.EncoderException

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

toString

public String toString(String tabs)
See Also:
Object.toString()


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.