Package org.apache.wss4j.common.token
Class PKIPathSecurity
- java.lang.Object
-
- org.apache.wss4j.common.token.BinarySecurity
-
- org.apache.wss4j.common.token.PKIPathSecurity
-
public class PKIPathSecurity extends BinarySecurity
PKIPath Security Token.
-
-
Field Summary
Fields Modifier and Type Field Description static String
PKI_TYPE
-
Fields inherited from class org.apache.wss4j.common.token.BinarySecurity
TOKEN_BST, TOKEN_KI
-
-
Constructor Summary
Constructors Constructor Description PKIPathSecurity(Document doc)
Constructor.PKIPathSecurity(Element elem, BSPEnforcer bspEnforcer)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
getType()
X509Certificate[]
getX509Certificates(Crypto crypto)
get the X509Certificate array.void
setX509Certificates(X509Certificate[] certs, Crypto crypto)
set the X509Certificate array.-
Methods inherited from class org.apache.wss4j.common.token.BinarySecurity
addWSSENamespace, addWSUNamespace, encodeRawToken, equals, getAttachmentCallbackHandler, getElement, getEncodingType, getID, getToken, getValueType, hashCode, isStoreBytesInAttachment, setAttachmentCallbackHandler, setEncodingType, setID, setRawToken, setStoreBytesInAttachment, setToken, setValueType, toString
-
-
-
-
Field Detail
-
PKI_TYPE
public static final String PKI_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PKIPathSecurity
public PKIPathSecurity(Element elem, BSPEnforcer bspEnforcer) throws WSSecurityException
Constructor.- Parameters:
elem
- The PKIPath element to processbspEnforcer
- a BSPEnforcer instance to enforce BSP rules- Throws:
WSSecurityException
-
PKIPathSecurity
public PKIPathSecurity(Document doc)
Constructor.
-
-
Method Detail
-
getX509Certificates
public X509Certificate[] getX509Certificates(Crypto crypto) throws WSSecurityException
get the X509Certificate array.- Parameters:
crypto
-- Returns:
- array of certificates
- Throws:
WSSecurityException
-
setX509Certificates
public void setX509Certificates(X509Certificate[] certs, Crypto crypto) throws WSSecurityException
set the X509Certificate array.- Parameters:
certs
-crypto
-- Throws:
WSSecurityException
-
getType
public static String getType()
-
-