org.apache.ws.security.message.token
Class PKIPathSecurity

java.lang.Object
  extended by org.apache.ws.security.message.token.BinarySecurity
      extended by org.apache.ws.security.message.token.PKIPathSecurity

public class PKIPathSecurity
extends BinarySecurity

PKIPath Security Token.

Author:
Davanum Srinivas (dims@yahoo.com).

Field Summary
static String PKI_TYPE
           
 
Fields inherited from class org.apache.ws.security.message.token.BinarySecurity
BASE64_ENCODING, element, TOKEN_BST, TOKEN_KI
 
Constructor Summary
PKIPathSecurity(Document doc)
          Constructor.
PKIPathSecurity(Element elem)
          Constructor.
PKIPathSecurity(Element elem, boolean bspCompliant)
          Constructor.
 
Method Summary
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.ws.security.message.token.BinarySecurity
addWSSENamespace, addWSUNamespace, equals, getElement, getEncodingType, getFirstNode, getID, getToken, getValueType, hashCode, setEncodingType, setID, setToken, setValueType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PKI_TYPE

public static final String PKI_TYPE
See Also:
Constant Field Values
Constructor Detail

PKIPathSecurity

public PKIPathSecurity(Element elem)
                throws WSSecurityException
Constructor.

Parameters:
elem - The PKIPath element to process
Throws:
WSSecurityException

PKIPathSecurity

public PKIPathSecurity(Element elem,
                       boolean bspCompliant)
                throws WSSecurityException
Constructor.

Parameters:
elem - The PKIPath element to process
bspCompliant - Whether the token is processed according to the BSP spec
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()


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.