public class X509Security extends BinarySecurity
Modifier and Type | Field and Description |
---|---|
static String |
X509_V3_TYPE |
TOKEN_BST, TOKEN_KI
Constructor and Description |
---|
X509Security(Document doc)
This constructor creates a new X509 certificate element.
|
X509Security(Element elem,
BSPEnforcer bspEnforcer)
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, encodeRawToken, equals, getAttachmentCallbackHandler, getElement, getEncodingType, getID, getToken, getValueType, hashCode, isStoreBytesInAttachment, setAttachmentCallbackHandler, setEncodingType, setID, setRawToken, setStoreBytesInAttachment, setToken, setValueType, toString
public static final String X509_V3_TYPE
public X509Security(Element elem, BSPEnforcer bspEnforcer) throws WSSecurityException
elem
- the element containing the X509 certificate databspEnforcer
- a BSPEnforcer instance to enforce BSP rulesWSSecurityException
public X509Security(Document doc)
doc
- public X509Certificate getX509Certificate(Crypto crypto) throws WSSecurityException
WSSecurityException
public void setX509Certificate(X509Certificate cert) throws WSSecurityException
cert
- the X509 certificate to store in the elementWSSecurityException
Copyright © 2019 JBoss by Red Hat. All rights reserved.