com.ibm.security.krb5.internal

Class KRBSafeBody

  1. java.lang.Object
  2. extended bycom.ibm.security.krb5.internal.KRBSafeBody

  1. public class KRBSafeBody
  2. extends java.lang.Object
Implements the ASN.1 KRBSafeBody type. KRB-SAFE-BODY ::= SEQUENCE { user-data[0] OCTET STRING, timestamp[1] KerberosTime OPTIONAL, usec[2] INTEGER OPTIONAL, seq-number[3] INTEGER OPTIONAL, s-address[4] HostAddress, r-address[5] HostAddress OPTIONAL }

This definition reflects the Network Working Group RFC 1510 specifications dated September 1993 and available at http://www.ietf.org/rfc/rfc1510.txt.


Field Summary

Modifier and Type Field and Description
  1. HostAddress
rAddress
  1. HostAddress
sAddress
  1. java.lang.Integer
seqNumber
  1. KerberosTime
timestamp
  1. java.lang.Integer
usec
  1. byte[]
userData

Constructor Summary

Constructor and Description
KRBSafeBody(byte[] new_userData,KerberosTime new_timestamp,java.lang.Integer new_usec,java.lang.Integer new_seqNumber,HostAddress new_sAddress,HostAddress new_rAddress)
KRBSafeBody(com.ibm.security.util.DerValue encoding)
Constructs a KRBSafeBody object.

Method Summary

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

Field Detail

userData

  1. public byte[] userData

timestamp

  1. public KerberosTime timestamp

usec

  1. public java.lang.Integer usec

seqNumber

  1. public java.lang.Integer seqNumber

sAddress

  1. public HostAddress sAddress

rAddress

  1. public HostAddress rAddress

Constructor Detail

KRBSafeBody

  1. public KRBSafeBody(byte[] new_userData,
  2. KerberosTime new_timestamp,
  3. java.lang.Integer new_usec,
  4. java.lang.Integer new_seqNumber,
  5. HostAddress new_sAddress,
  6. HostAddress new_rAddress)

KRBSafeBody

  1. public KRBSafeBody(com.ibm.security.util.DerValue encoding)
  2. throws Asn1Exception
  3. java.io.IOException
Constructs a KRBSafeBody object.
Parameters:
encoding - a Der-encoded data.
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

asn1Encode

  1. public byte[] asn1Encode()
  2. throws Asn1Exception
  3. java.io.IOException
Encodes an KRBSafeBody object.
Returns:
the byte array of encoded KRBSafeBody 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 KRBSafeBody parse( com.ibm.security.util.DerInputStream data,
  2. byte explicitTag,
  3. boolean optional)
  4. throws Asn1Exception
  5. java.io.IOException
Parse (unmarshal) a KRBSafeBody 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 KRBSafeBody.
Throws:
Asn1Exception - on error.
java.io.IOException