public class X509Security extends BinarySecurity
| Modifier and Type | Field and Description |
|---|---|
static String |
X509_V3_TYPE |
BASE64_ENCODING, element, TOKEN_BST, TOKEN_KI| Constructor and Description |
|---|
X509Security(Document doc)
This constructor creates a new X509 certificate element.
|
X509Security(Element elem)
This constructor creates a new X509 certificate object and initializes
it from the data contained in the element.
|
X509Security(Element elem,
boolean bspCompliant)
This constructor creates a new X509 certificate object and initializes
it from the data contained in the element.
|
| Modifier and Type | Method and Description |
|---|---|
X509Certificate |
getX509Certificate(Crypto crypto)
Gets the X509Certificate certificate.
|
void |
setX509Certificate(X509Certificate cert)
Sets the X509Certificate.
|
addWSSENamespace, addWSUNamespace, equals, getElement, getEncodingType, getFirstNode, getID, getToken, getValueType, hashCode, setEncodingType, setID, setToken, setValueType, toStringpublic static final String X509_V3_TYPE
public X509Security(Element elem) throws WSSecurityException
elem - the element containing the X509 certificate dataWSSecurityExceptionpublic X509Security(Element elem, boolean bspCompliant) throws WSSecurityException
elem - the element containing the X509 certificate databspCompliant - Whether the token is processed according to the BSP specWSSecurityExceptionpublic X509Security(Document doc)
doc - public X509Certificate getX509Certificate(Crypto crypto) throws WSSecurityException
WSSecurityExceptionpublic void setX509Certificate(X509Certificate cert) throws WSSecurityException
cert - the X509 certificate to store in the elementWSSecurityExceptionCopyright © 2004–2015 The Apache Software Foundation. All rights reserved.