|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.javasign.operators.SignerInformation
an expanded SignerInfo block from a CMS Signed message
Constructor Summary | |
SignerInformation(SignerInfo info,
DERObjectIdentifier contentType,
CMSProcessable content,
byte[] digest)
|
Method Summary | |
java.util.Collection |
getCounterSigners()
|
java.lang.String |
getCrlOption()
|
java.lang.String |
getDigestAlgOID()
return the object identifier for the signature. |
byte[] |
getDigestAlgParams()
return the signature parameters, or null if there aren't any. |
byte[] |
getEncodedSignedAttributes()
return the DER encoding of the signed attributes. |
java.lang.String |
getEncryptionAlgOID()
return the object identifier for the signature. |
byte[] |
getEncryptionAlgParams()
return the signature/encyrption algorithm parameters, or null if there aren't any. |
SignerId |
getSID()
|
byte[] |
getSignature()
return the encoded signature |
AttributeTable |
getSignedAttributes()
return a table of the signed attributes - indexed by the OID of the attribute. |
AttributeTable |
getUnsignedAttributes()
return a table of the unsigned attributes indexed by the OID of the attribute. |
boolean |
isCheckCA()
|
static SignerInformation |
replaceUnsignedAttributes(SignerInformation signerInformation,
AttributeTable unsignedAttributes)
Return a signer information object with the passed in unsigned attributes replacing the ones that are current associated with the object passed in. |
void |
setCheckCA(boolean checkCA)
|
void |
setCrlOption(java.lang.String crlOption)
|
void |
setTrustedCA(java.lang.Object obj)
|
SignatureVerification |
verify(java.security.cert.X509Certificate cert,
java.lang.String sigProvider)
verify that the given certificate succesfully handles and confirms the signature associated with this signer and, if a signingTime attribute is available, that the certificate was valid at the time the signature was generated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SignerInformation(SignerInfo info, DERObjectIdentifier contentType, CMSProcessable content, byte[] digest)
Method Detail |
public SignerId getSID()
public java.lang.String getDigestAlgOID()
public byte[] getDigestAlgParams()
public java.lang.String getEncryptionAlgOID()
public byte[] getEncryptionAlgParams()
public AttributeTable getSignedAttributes()
public AttributeTable getUnsignedAttributes()
public byte[] getSignature()
public byte[] getEncodedSignedAttributes() throws java.io.IOException
java.io.IOException
- if an encoding error occurs.public void setTrustedCA(java.lang.Object obj)
public java.lang.String getCrlOption()
public void setCrlOption(java.lang.String crlOption)
public SignatureVerification verify(java.security.cert.X509Certificate cert, java.lang.String sigProvider)
public static SignerInformation replaceUnsignedAttributes(SignerInformation signerInformation, AttributeTable unsignedAttributes)
signerInformation
- the signerInfo to be used as the basis.unsignedAttributes
- the unsigned attributes to add.
public boolean isCheckCA()
public void setCheckCA(boolean checkCA)
public java.util.Collection getCounterSigners() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |