Class KeyInfoStrategy

    • Constructor Detail

      • KeyInfoStrategy

        public KeyInfoStrategy()
    • Method Detail

      • insertKey

        public abstract void insertKey​(KeyInfoHeaderBlock keyInfo,
                                       SecurableSoapMessage secureMsg,
                                       String x509TokenId)
                                throws XWSSecurityException
        insert the Key Information into a ds:KeyInfo using the appropriate scheme
        Parameters:
        keyInfo - the KeyInfo block into which the Key Information has to be inserted.
        secureMsg - the SecurableSoapMessage
        x509TokenId - value of the <xwss:X509Token>/@id in config file
        Throws:
        XWSSecurityException - if there was a problem in inserting the key information
      • insertKey

        public abstract void insertKey​(SecurityTokenReference tokenRef,
                                       SecurableSoapMessage secureMsg)
                                throws XWSSecurityException
        insert the Key Information into a SecurityTokenReference using the appropriate scheme
        Parameters:
        tokenRef - the SecurityTokenReference into which the Key Information has to be inserted.
        secureMsg - the SecurableSoapMessage
        Throws:
        XWSSecurityException - if there was a problem in inserting the key information
      • setCertificate

        public abstract void setCertificate​(X509Certificate cert)
        Sets the certificate corresponding to the security operation
      • getAlias

        public abstract String getAlias()