Class X509Security


  • public class X509Security
    extends BinarySecurity
    X509 Security Token.
    • Constructor Detail

      • X509Security

        public X509Security​(Element elem,
                            BSPEnforcer bspEnforcer)
                     throws WSSecurityException
        This constructor creates a new X509 certificate object and initializes it from the data contained in the element.
        Parameters:
        elem - the element containing the X509 certificate data
        bspEnforcer - a BSPEnforcer instance to enforce BSP rules
        Throws:
        WSSecurityException
      • X509Security

        public X509Security​(Document doc)
        This constructor creates a new X509 certificate element.
        Parameters:
        doc -
    • Method Detail

      • setX509Certificate

        public void setX509Certificate​(X509Certificate cert)
                                throws WSSecurityException
        Sets the X509Certificate. This functions takes the X509 certificate, gets the data from it as encoded bytes, and sets the data as base 64 encoded data in the text node of the element
        Parameters:
        cert - the X509 certificate to store in the element
        Throws:
        WSSecurityException