Class StaticSTSProperties

    • Constructor Detail

      • StaticSTSProperties

        public StaticSTSProperties()
    • Method Detail

      • setCallbackHandlerClass

        public void setCallbackHandlerClass​(String callbackHandlerClass)
        Set the String corresponding to the CallbackHandler class.
        Parameters:
        callbackHandlerClass - the String corresponding to the CallbackHandler class.
      • getCallbackHandlerClass

        public String getCallbackHandlerClass()
      • setSignatureCrypto

        public void setSignatureCrypto​(org.apache.wss4j.common.crypto.Crypto signatureCrypto)
        Set the signature Crypto object
        Specified by:
        setSignatureCrypto in interface STSPropertiesMBean
        Parameters:
        signatureCrypto - the signature Crypto object
      • setSignatureCryptoProperties

        public void setSignatureCryptoProperties​(Object signatureCryptoProperties)
        Set the Object corresponding to the signature Properties class. It can be a String corresponding to a filename, a Properties object, or a URL.
        Parameters:
        signatureCryptoProperties - the object corresponding to the signature properties
      • getSignatureCryptoProperties

        public Object getSignatureCryptoProperties()
      • getSignatureCrypto

        public org.apache.wss4j.common.crypto.Crypto getSignatureCrypto()
        Get the signature Crypto object
        Specified by:
        getSignatureCrypto in interface STSPropertiesMBean
        Returns:
        the signature Crypto object
      • setSignatureUsername

        public void setSignatureUsername​(String signatureUsername)
        Set the username/alias to use to sign any issued tokens
        Specified by:
        setSignatureUsername in interface STSPropertiesMBean
        Parameters:
        signatureUsername - the username/alias to use to sign any issued tokens
      • getSignatureUsername

        public String getSignatureUsername()
        Get the username/alias to use to sign any issued tokens
        Specified by:
        getSignatureUsername in interface STSPropertiesMBean
        Returns:
        the username/alias to use to sign any issued tokens
      • setEncryptionCrypto

        public void setEncryptionCrypto​(org.apache.wss4j.common.crypto.Crypto encryptionCrypto)
        Set the encryption Crypto object
        Specified by:
        setEncryptionCrypto in interface STSPropertiesMBean
        Parameters:
        encryptionCrypto - the encryption Crypto object
      • setEncryptionCryptoProperties

        public void setEncryptionCryptoProperties​(Object encryptionCryptoProperties)
        Set the Object corresponding to the encryption Properties class. It can be a String corresponding to a filename, a Properties object, or a URL.
        Parameters:
        encryptionCryptoProperties - the object corresponding to the encryption properties
      • getEncryptionCryptoProperties

        public Object getEncryptionCryptoProperties()
      • getEncryptionCrypto

        public org.apache.wss4j.common.crypto.Crypto getEncryptionCrypto()
        Get the encryption Crypto object
        Specified by:
        getEncryptionCrypto in interface STSPropertiesMBean
        Returns:
        the encryption Crypto object
      • setEncryptionUsername

        public void setEncryptionUsername​(String encryptionUsername)
        Set the username/alias to use to encrypt any issued tokens. This is a default value - it can be configured per Service in the ServiceMBean.
        Specified by:
        setEncryptionUsername in interface STSPropertiesMBean
        Parameters:
        encryptionUsername - the username/alias to use to encrypt any issued tokens
      • getEncryptionUsername

        public String getEncryptionUsername()
        Get the username/alias to use to encrypt any issued tokens. This is a default value - it can be configured per Service in the ServiceMBean
        Specified by:
        getEncryptionUsername in interface STSPropertiesMBean
        Returns:
        the username/alias to use to encrypt any issued tokens
      • setIssuer

        public void setIssuer​(String issuer)
        Set the STS issuer name
        Specified by:
        setIssuer in interface STSPropertiesMBean
        Parameters:
        issuer - the STS issuer name
      • setRealmParser

        public void setRealmParser​(RealmParser realmParser)
        Set the RealmParser object to use.
        Specified by:
        setRealmParser in interface STSPropertiesMBean
        Parameters:
        realmParser - the RealmParser object to use.
      • setIdentityMapper

        public void setIdentityMapper​(IdentityMapper identityMapper)
        Set the IdentityMapper object to use.
        Specified by:
        setIdentityMapper in interface STSPropertiesMBean
        Parameters:
        identityMapper - the IdentityMapper object to use.
      • getBus

        public Bus getBus()
      • setBus

        public void setBus​(Bus bus)
      • isValidateUseKey

        public boolean isValidateUseKey()
        Get whether to validate a client Public Key or Certificate presented as part of a UseKey element. This is true by default.
        Specified by:
        isValidateUseKey in interface STSPropertiesMBean
      • setValidateUseKey

        public void setValidateUseKey​(boolean validateUseKey)
        Set whether to validate a client Public Key or Certificate presented as part of a UseKey element. If this is set to true (the default), the public key must be trusted by the Signature Crypto of the STS.
        Specified by:
        setValidateUseKey in interface STSPropertiesMBean
        Parameters:
        validateUseKey - whether to validate a client UseKey or not.