public class AddExtensions
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object
| Constructor and Description |
|---|
AddExtensions()
Creates an empty
AddExtensions instance. |
AddExtensions(java.io.InputStream is)
Create a new
AddExtensions by reading from the specified input stream. |
AddExtensions(long bodyPartID)
Creates a
AddExtensions instance with the specified value. |
AddExtensions(long bodyPartID, long[] bodyPartIDs)
Creates an
AddExtensions instance with the specified values. |
AddExtensions(long bodyPartID, long[] bodyPartIDs, java.util.Vector extnValues)
Creates an
AddExtensions instance with the specified values. |
| Modifier and Type | Method and Description |
|---|---|
void |
addBodyPartIDs(long bodyPartID)
Add a BodyPart ID to the list of BodyPart IDs.
|
void |
addBodyPartIDs(long[] ids)
Add a BodyPart ID to the list of BodyPart IDs.
|
void |
addExtensionValues(java.util.Vector extnValues)
Sets the extension values.
|
void |
addExtensionValues(X509Extension extnValue)
Sets the extension values.
|
boolean |
equals(java.lang.Object o)
Compare this
AddExtensions to the specified object. |
long |
getBodyPartID()
Returns the BodyPart Identifier value.
|
long[] |
getBodyPartIDs()
Returns the list of BodyPart IDs.
|
java.util.Vector |
getExtensionValues()
Returns the list of X.509 extensions..
|
void |
input(java.io.InputStream is)
Create a new
AddExtensions by reading from the specified input stream. |
int |
length()
Returns the length of this object's encoding.
|
void |
output(java.io.OutputStream os)
Outputs the
TaggedAttribute to the specified output stream. |
void |
setBodyPartID(long bodyPartID)
Sets the BodyPart Identifier value.
|
public AddExtensions()
AddExtensions instance.
public AddExtensions(long bodyPartID)
throws oracle.security.crypto.util.InvalidInputException
AddExtensions instance with the specified value.bodyPartID - The unique integer use to reference the embedded request message.oracle.security.crypto.util.InvalidInputException
public AddExtensions(long bodyPartID,
long[] bodyPartIDs)
throws oracle.security.crypto.util.InvalidInputException
AddExtensions instance with the specified values.bodyPartID - The unique integer use to reference the embedded request message.bodyPartIDs - The list of BodyPart IDs.oracle.security.crypto.util.InvalidInputException
public AddExtensions(long bodyPartID,
long[] bodyPartIDs,
java.util.Vector extnValues)
throws oracle.security.crypto.util.InvalidInputException
AddExtensions instance with the specified values.bodyPartID - The unique integer use to reference the embedded request message.bodyPartIDs - The list of BodyPart IDs.extnValues - The list of X.509 Extensions.oracle.security.crypto.util.InvalidInputException
public AddExtensions(java.io.InputStream is)
throws java.io.IOException
AddExtensions by reading from the specified input stream.is - The input stream containing the encoded AddExtensions.java.io.IOException
public void setBodyPartID(long bodyPartID)
throws oracle.security.crypto.util.InvalidInputException
bodyPartID - The unique integer use to reference the embedded request message.oracle.security.crypto.util.InvalidInputExceptionpublic long getBodyPartID()
public void addBodyPartIDs(long bodyPartID)
throws oracle.security.crypto.util.InvalidInputException
bodyPartID - The integer reference to add.oracle.security.crypto.util.InvalidInputException
public void addBodyPartIDs(long[] ids)
throws oracle.security.crypto.util.InvalidInputException
ids - The list of integer references to add.oracle.security.crypto.util.InvalidInputExceptionpublic long[] getBodyPartIDs()
public void addExtensionValues(X509Extension extnValue)
extnValue - The list of X.509 extension to add.public void addExtensionValues(java.util.Vector extnValues)
extnValues - The list of X.509 extensions.public java.util.Vector getExtensionValues()
X509Extensions.
public void input(java.io.InputStream is)
throws java.io.IOException
AddExtensions by reading from the specified input stream.input in interface oracle.security.crypto.util.Streamableis - The input stream containing the encoded AddExtensions.java.io.IOException - The input encoding is incorrect or an I/O error occurs.
public void output(java.io.OutputStream os)
throws java.io.IOException
TaggedAttribute to the specified output stream.output in interface oracle.security.crypto.util.Streamableos - The output stream.java.io.IOException - An I/O error occurs.public int length()
length in interface oracle.security.crypto.util.Streamablepublic boolean equals(java.lang.Object o)
AddExtensions to the specified object. Returns true if and only if the argument is not null and is an AddExtensions object which has the same DER encoding as this object.equals in class java.lang.Object