|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.crmf.Control | +--com.rsa.certj.crmf.NonStandardControl
This class holds any control. It cannot encode or decode data, it can only take in the encoded value and return it.
Copyright © RSA Security Inc., 2000-2001. All rights reserved.
See Also
Fields inherited from class com.rsa.certj.crmf.Control |
AUTHENTICATOR, NON_STANDARD, OLD_CERT_ID, PKI_ARCHIVE_OPTIONS, PKI_PUBLICATION_INFO, PROTOCOL_ENCR_KEY, REG_TOKEN |
Constructor Summary |
|
NonStandardControl()
The empty constructor. |
|
NonStandardControl(byte[] oid,
int oidOffset,
int oidLen,
byte[] valueDER,
int valueOffset,
int valueLen)
This constructor takes in the OID and encoded value. |
Method Summary |
|
clone()
Overrides the default |
|
boolean |
equals(Object obj)
Returns true if this object and obj contain the same NonStandardControl, returns false otherwise. |
byte[] |
getValue()
Gets the value of this control. |
void |
setOID(byte[] oid,
int oidOffset,
int oidLen)
Sets the OID of this control. |
void |
setValue(byte[] valueDER,
int valueOffset,
int valueLen)
Sets the value of this control. |
Methods inherited from class com.rsa.certj.crmf.Control |
compareOID, derEncodeControlLen, getControlType, getControlTypeString, getDEREncoding, getDERLen, getInstance, getInstance, getNextBEROffset, getOID, isControlType, setEnvironment |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NonStandardControl()
public NonStandardControl(byte[] oid, int oidOffset, int oidLen, byte[] valueDER, int valueOffset, int valueLen)
Parameters
oid | The byte array that contains the OID | ||
oidOffset | Offset into oid | ||
oidLen | Length of oid | ||
valueDER | The DER encoding of the value | ||
valueOffset | Offset into valueDER | ||
valueLen | Length of valueDER |
Method Detail |
public void setOID(byte[] oid, int oidOffset, int oidLen)
Parameters
oid | The byte array that contains the OID | ||
oidOffset | Offset into oid | ||
oidLen | Length of oid |
public void setValue(byte[] valueDER, int valueOffset, int valueLen)
Parameters
valueDER | The DER encoding of the value | ||
valueOffset | Offset into valueDER | ||
valueLen | Length of valueDER |
public byte[] getValue()
Returns
public Object clone() throws CloneNotSupportedException
clone
method
to get a deeper clone.
Overrides
clone
in class Control
Returns
NonStandardControl
object,
a copy of this object.
Throws
CloneNotSupportedException
- If the cloning operation
is not successful.public boolean equals(Object obj)
Overrides
equals
in class Control
Parameters
obj | The instance of NonStandardControl object |
Returns
boolean
that indicates whether
these objects are equal.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |