public class EquivalentLabels
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object
The output is always a DER encoding.
| Constructor and Description |
|---|
EquivalentLabels()
Create an empty
EquivalentLabels. |
EquivalentLabels(CMSSignerInfo si)
Create a
EquivalentLabels with the given policy identifier. |
EquivalentLabels(ESSSecurityLabel secLabel)
Create an empty
EquivalentLabels. |
EquivalentLabels(java.io.InputStream is)
Create a
EquivalentLabels by reading from the specified input stream. |
EquivalentLabels(java.util.Vector secLabels)
Create an empty
EquivalentLabels. |
| Modifier and Type | Method and Description |
|---|---|
void |
addSecurityLabel(ESSSecurityLabel secLabel)
Adds a security label.
|
boolean |
equals(java.lang.Object o)
Indicates if the object equals the specified object.
|
java.util.Vector |
getSecurityLabels()
Get the list of Security Labels.
|
int |
hashCode()
Return the hash code for this object.
|
void |
input(java.io.InputStream is) |
java.util.Enumeration |
labels()
Returns an enumeration of Security Labels.
|
int |
length()
Return the length of this object's encoding.
|
void |
output(java.io.OutputStream os)
Outputs this object's encoding to the specified output stream.
|
java.lang.String |
toString() |
public EquivalentLabels(java.io.InputStream is)
throws java.io.IOException
EquivalentLabels by reading from the specified input stream.is - The input stream.java.io.IOExceptionpublic EquivalentLabels(CMSSignerInfo si) throws oracle.security.crypto.util.InvalidInputException
EquivalentLabels with the given policy identifier.si - The message signer.oracle.security.crypto.util.InvalidInputException - If the input is not correctly formatted or the SigningCertificateAttribute is not present or the SigningCertificateAttribute has multiple values.public EquivalentLabels()
EquivalentLabels.public EquivalentLabels(ESSSecurityLabel secLabel)
EquivalentLabels.public EquivalentLabels(java.util.Vector secLabels)
EquivalentLabels.public void addSecurityLabel(ESSSecurityLabel secLabel)
secLabel - The security label.public java.util.Vector getSecurityLabels()
Vector containing ESSSecurityLabel objects if present; null otherwise.public java.util.Enumeration labels()
Enumeration containing ESSSecurityLabel objects.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecttrue this object is equal to the specified object; false otherwise.public int hashCode()
hashCode in class java.lang.Objectpublic void input(java.io.InputStream is)
throws java.io.IOException
input in interface oracle.security.crypto.util.Streamablejava.io.IOExceptionpublic void output(java.io.OutputStream os)
throws java.io.IOException
output in interface oracle.security.crypto.util.Streamableos - The output stream.java.io.IOException - An I/O error occurred.public int length()
length in interface oracle.security.crypto.util.Streamable