|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.provider.pki.cmp.TypeAndValue
This class represents an generic type and value pair such as InfoTypeAndValue defined in rfc2510 as follows.
InfoTypeAndValue ::= SEQUENCE { infoType OBJECT IDENTIFIER, infoValue ANY DEFINED BY infoType OPTIONAL } |
Constructor Summary |
|
TypeAndValue(byte[] type,
int typeOffset,
int typeLen,
byte[] value,
int valueOffset,
int valueLen)
Constructs a |
Method Summary |
|
boolean |
equals(Object obj)
Indicates whether this object and obj contain
the same |
byte[] |
getType()
Returns a |
byte[] |
getValue()
Returns a |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TypeAndValue(byte[] type, int typeOffset, int typeLen, byte[] value, int valueOffset, int valueLen) throws CMPException
TypeAndValue
object whose
type component is provided in the type array,
beginning at typeOffset for the typeLen
number of bytes, and whose value component is provided
in the value array, starting at valueOffset
for the valueLen number of bytes.Parameters
type | A | ||
typeOffset | An | ||
typeLen | An | ||
value | A | ||
valueOffset | An | ||
valueLen | An |
Throws
CMPException
- If the type argument is null.Method Detail |
public byte[] getType()
byte
array holding the type of this
object.
Returns
byte
array holding the type of this
object.public byte[] getValue()
byte
array holding the value of this
object.
Returns
byte
array holding the value of this
object.public boolean equals(Object obj)
TypeAndValue
object.Overrides
equals
in class Object
Parameters
obj | An |
Returns
boolean
value indicating whether
the two objects are equal.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |