com.ibm.security.krb5.internal
Class AuthorizationData
- java.lang.Object
com.ibm.security.krb5.internal.AuthorizationData
All implemented interfaces:
java.lang.Cloneable
- public class AuthorizationData
- extends java.lang.Object
- implements java.lang.Cloneable
Field Summary
Modifier and Type | Field and Description |
---|---|
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 |
---|---|
|
asn1Encode()
Encodes an
AuthorizationData object.
|
|
clone()
|
|
parse(com.ibm.security.util.DerInputStream data,byte explicitTag,boolean optional)
Parse (unmarshal) an
AuthorizationData object from a DER input stream.
|
|
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
- public AuthorizationDataEntry[] entry
Constructor Detail
AuthorizationData
- public AuthorizationData(AuthorizationDataEntry[] new_entries)
AuthorizationData
- public AuthorizationData(AuthorizationDataEntry new_entry)
AuthorizationData
- public AuthorizationData(com.ibm.security.util.DerValue der)
- throws Asn1Exception
- java.io.IOException
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
- public java.lang.Object clone()
Overrides:
clone
in class java.lang.Object
asn1Encode
- public byte[] asn1Encode()
- throws Asn1Exception
- 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
- public static AuthorizationData parse( com.ibm.security.util.DerInputStream data,
- byte explicitTag,
- boolean optional)
- throws Asn1Exception
- 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
- public void writeAuth(CCacheOutputStream cos)
- 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.
AuthorizationData,
instance.