com.ibm.security.krb5.internal

Class AuthorizationData

  1. java.lang.Object
  2. extended bycom.ibm.security.krb5.internal.AuthorizationData
All implemented interfaces:
java.lang.Cloneable

  1. public class AuthorizationData
  2. extends java.lang.Object
  3. implements java.lang.Cloneable
In RFC1510, the ASN.1 AuthorizationData is defined as: AuthorizationData ::= SEQUENCE OF SEQUENCE { ad-type[0] INTEGER, ad-data[1] OCTET STRING } Here, two classes are used to implement it and they can be represented as follows: AuthorizationData ::= SEQUENCE OF AuthorizationDataEntry AuthorizationDataEntry ::= SEQUENCE { ad-type[0] INTEGER, ad-data[1] OCTET STRING }

Field Summary

Modifier and Type Field and Description
  1. AuthorizationDataEntry[]
entry

Constructor Summary

Constructor and Description
AuthorizationData(AuthorizationDataEntry new_entry)
AuthorizationData(AuthorizationDataEntry[] new_entries)
AuthorizationData(com.ibm.security.util.DerValue der)
Constructs a new AuthorizationData, instance.

Method Summary

Modifier and Type Method and Description
  1. byte[]
asn1Encode()
Encodes an AuthorizationData object.
  1. java.lang.Object
clone()
  1. static
  2. AuthorizationData
parse(com.ibm.security.util.DerInputStream data,byte explicitTag,boolean optional)
Parse (unmarshal) an AuthorizationData object from a DER input stream.
  1. void
writeAuth(CCacheOutputStream cos)
Writes AuthorizationData data fields to a output stream.
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

entry

  1. public AuthorizationDataEntry[] entry

Constructor Detail

AuthorizationData

  1. public AuthorizationData(AuthorizationDataEntry[] new_entries)

AuthorizationData

  1. public AuthorizationData(AuthorizationDataEntry new_entry)

AuthorizationData

  1. public AuthorizationData(com.ibm.security.util.DerValue der)
  2. throws Asn1Exception
  3. java.io.IOException
Constructs a new AuthorizationData, instance.
Parameters:
der - a single DER-encoded value.
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.

Method Detail

clone

  1. public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

asn1Encode

  1. public byte[] asn1Encode()
  2. throws Asn1Exception
  3. java.io.IOException
Encodes an AuthorizationData object.
Returns:
byte array of encoded AuthorizationData 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

  1. public static AuthorizationData parse( com.ibm.security.util.DerInputStream data,
  2. byte explicitTag,
  3. boolean optional)
  4. throws Asn1Exception
  5. java.io.IOException
Parse (unmarshal) an AuthorizationData object 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 - indicates if this data field is optional
Returns:
an instance of AuthorizationData.
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.

writeAuth

  1. public void writeAuth(CCacheOutputStream cos)
  2. throws java.io.IOException
Writes AuthorizationData data fields to a output stream.
Parameters:
cos - a CCacheOutputStream to be written to.
Throws:
java.io.IOException - if an I/O exception occurs.