|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.rsa.swsj.X509Data
This class stores one or more identifiers of X.509 certificates such as
subject name, or issuer name and serial number, that can be used for
validation and encryption. These identifiers map to the same certificate.
There are five types of X509Data, namely: X509IssuerSerial,
X509SubjectName, X509SKI,
X509Certificate, and X509CRL.
X509SKI is not supported by Secure-WS-J.
This class is also used to find an appropriate transport key for decryption.
| Constructor Summary | |
X509Data(SWSJContext context)
Creates an empty |
|
| Method Summary | |
void |
addCertificate(java.security.cert.X509Certificate certificate)
Adds an |
void |
addX509CRL(java.security.cert.X509CRL crl)
Adds an |
java.security.cert.X509Certificate[] |
getCertificateChain()
Returns the certificate chain stored in this |
getContext()
Gets the SWSJContext. |
|
java.lang.String |
getIssuerName()
Returns the issuer distinguished name of this |
byte[] |
getIssuerSerialNumber()
Returns the issuer serial number of this |
java.lang.String |
getSubjectName()
Returns the subject distinguished name of this |
java.security.cert.X509CRL[] |
getX509CRLs()
Returns the |
void |
setCertificateChain(java.security.cert.X509Certificate[] certificates)
Sets the certificate chain to include in this |
void |
setIssuerName(java.lang.String issuerName)
Sets the issuer's distinguished name for this |
void |
setIssuerSerialNumber(byte[] serialNum)
Sets the issuer serial number to this |
void |
setSubjectName(java.lang.String subjectName)
Sets the subject distinguished name to this |
void |
setX509CRLs(java.security.cert.X509CRL[] crls)
Sets the list of |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public X509Data(SWSJContext context)
throws InvalidParameterException
X509Data object initialized only with
context.
context - An object that collects a number of common parameters and
state variables; for example, JCE provider.
InvalidParameterException - If context is invalid.| Method Detail |
public SWSJContext getContext()
getContext in interface KeyInfo
public void setSubjectName(java.lang.String subjectName)
throws InvalidParameterException
X509Data
object.
subjectName - A String object.
InvalidParameterException - If subjectName is null.public java.lang.String getSubjectName()
X509Data
object, if there is one.
X509Data object as a
String.
public void setIssuerName(java.lang.String issuerName)
throws InvalidParameterException
X509Data. If
this method is called, setIssuerSerialNumber() must be
called, also.
issuerName - An String object that is the issuer name
of an X.509 certificate.
InvalidParameterException - If issuerName is invalid.setIssuerSerialNumber(byte[])public java.lang.String getIssuerName()
X509Data
object, if there is one.
issuerName of this X509Data object
as a String.
public void setX509CRLs(java.security.cert.X509CRL[] crls)
throws InvalidParameterException
X509CRL objects to include in this
X509Data object.
crls - An X509CRL array containing the CRLs to set.
InvalidParameterException - If crls is invalid.public java.security.cert.X509CRL[] getX509CRLs()
X509CRL objects stored in this
X509Data object.
X509Data object.
public void addX509CRL(java.security.cert.X509CRL crl)
throws InvalidParameterException
X509CRL object to include in this
X509Data object.
crl - An X509CRL object to add.
InvalidParameterException - If crl is null.
public void setCertificateChain(java.security.cert.X509Certificate[] certificates)
throws InvalidParameterException
X509Data
object. A user can set the X509Certificate that is
required during verification by passing an array that contains only
that certificate.
Note: For decryption, use the transport key in
XMLEncryption, not a certificate chain.
certificates - An X509Certificate array containing the
certificate chain to set.
InvalidParameterException - If certificates is
invalid.public java.security.cert.X509Certificate[] getCertificateChain()
X509Data
object.
X509Data object.
public void addCertificate(java.security.cert.X509Certificate certificate)
throws InvalidParameterException
X509Certificate object to include in this
X509Data object.
certificate - An X509Certificate object to add.
InvalidParameterException - If certificate is invalid.
public void setIssuerSerialNumber(byte[] serialNum)
throws InvalidParameterException
X509Data object. If
this method is called, setIssuerName() must be called,
also.
serialNum - The issuer's serial number, as a byte
array.
InvalidParameterException - If serialNum is invalid.setIssuerName(String)public byte[] getIssuerSerialNumber()
X509Data object,
if there is one.
byte array.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||