Package org.apache.cxf.sts
Class StaticSTSProperties
java.lang.Object
org.apache.cxf.sts.StaticSTSProperties
- All Implemented Interfaces:
STSPropertiesMBean
A static implementation of the STSPropertiesMBean.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLoad the CallbackHandler, Crypto objects, if necessary.getBus()Get the CallbackHandler object.org.apache.wss4j.common.crypto.CryptoGet the encryption Crypto objectGet the EncryptionProperties to use.Get the username/alias to use to encrypt any issued tokens.Get the IdentityMapper object to use.Get the STS issuer nameGet the RealmParser object to use.Get the RelationshipResolver objects to use.Get the list of Relationship objects to use.Get the SAML Realm Codec object to use.org.apache.wss4j.common.crypto.CryptoGet the signature Crypto objectGet the SignatureProperties to use.Get the username/alias to use to sign any issued tokensbooleanGet whether to validate a client Public Key or Certificate presented as part of a UseKey element.voidvoidsetCallbackHandler(CallbackHandler callbackHandler) Set the CallbackHandler object.voidsetCallbackHandlerClass(String callbackHandlerClass) Set the String corresponding to the CallbackHandler class.voidsetEncryptionCrypto(org.apache.wss4j.common.crypto.Crypto encryptionCrypto) Set the encryption Crypto objectvoidsetEncryptionCryptoProperties(Object encryptionCryptoProperties) Set the Object corresponding to the encryption Properties class.voidsetEncryptionProperties(EncryptionProperties encryptionProperties) Set the EncryptionProperties to use.voidsetEncryptionUsername(String encryptionUsername) Set the username/alias to use to encrypt any issued tokens.voidsetIdentityMapper(IdentityMapper identityMapper) Set the IdentityMapper object to use.voidSet the STS issuer namevoidsetRealmParser(RealmParser realmParser) Set the RealmParser object to use.voidsetRelationships(List<Relationship> relationships) Set the list of Relationship objects to use.voidsetSamlRealmCodec(SAMLRealmCodec samlRealmCodec) Set the SAML Realm Codec object to use.voidsetSignatureCrypto(org.apache.wss4j.common.crypto.Crypto signatureCrypto) Set the signature Crypto objectvoidsetSignatureCryptoProperties(Object signatureCryptoProperties) Set the Object corresponding to the signature Properties class.voidsetSignatureProperties(SignatureProperties signatureProperties) Set the SignatureProperties to use.voidsetSignatureUsername(String signatureUsername) Set the username/alias to use to sign any issued tokensvoidsetValidateUseKey(boolean validateUseKey) Set whether to validate a client Public Key or Certificate presented as part of a UseKey element.
-
Constructor Details
-
StaticSTSProperties
public StaticSTSProperties()
-
-
Method Details
-
configureProperties
Load the CallbackHandler, Crypto objects, if necessary.- Specified by:
configurePropertiesin interfaceSTSPropertiesMBean- Throws:
STSException
-
setCallbackHandler
Set the CallbackHandler object.- Specified by:
setCallbackHandlerin interfaceSTSPropertiesMBean- Parameters:
callbackHandler- the CallbackHandler object.
-
setCallbackHandlerClass
Set the String corresponding to the CallbackHandler class.- Parameters:
callbackHandlerClass- the String corresponding to the CallbackHandler class.
-
getCallbackHandlerClass
-
getCallbackHandler
Get the CallbackHandler object.- Specified by:
getCallbackHandlerin interfaceSTSPropertiesMBean- Returns:
- the CallbackHandler object.
-
setSignatureCrypto
public void setSignatureCrypto(org.apache.wss4j.common.crypto.Crypto signatureCrypto) Set the signature Crypto object- Specified by:
setSignatureCryptoin interfaceSTSPropertiesMBean- Parameters:
signatureCrypto- the signature Crypto object
-
setSignatureCryptoProperties
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
-
getSignatureCrypto
public org.apache.wss4j.common.crypto.Crypto getSignatureCrypto()Get the signature Crypto object- Specified by:
getSignatureCryptoin interfaceSTSPropertiesMBean- Returns:
- the signature Crypto object
-
setSignatureUsername
Set the username/alias to use to sign any issued tokens- Specified by:
setSignatureUsernamein interfaceSTSPropertiesMBean- Parameters:
signatureUsername- the username/alias to use to sign any issued tokens
-
getSignatureUsername
Get the username/alias to use to sign any issued tokens- Specified by:
getSignatureUsernamein interfaceSTSPropertiesMBean- 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:
setEncryptionCryptoin interfaceSTSPropertiesMBean- Parameters:
encryptionCrypto- the encryption Crypto object
-
setEncryptionCryptoProperties
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
-
getEncryptionCrypto
public org.apache.wss4j.common.crypto.Crypto getEncryptionCrypto()Get the encryption Crypto object- Specified by:
getEncryptionCryptoin interfaceSTSPropertiesMBean- Returns:
- the encryption Crypto object
-
setEncryptionUsername
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:
setEncryptionUsernamein interfaceSTSPropertiesMBean- Parameters:
encryptionUsername- the username/alias to use to encrypt any issued tokens
-
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:
getEncryptionUsernamein interfaceSTSPropertiesMBean- Returns:
- the username/alias to use to encrypt any issued tokens
-
setEncryptionProperties
Set the EncryptionProperties to use.- Specified by:
setEncryptionPropertiesin interfaceSTSPropertiesMBean- Parameters:
encryptionProperties- the EncryptionProperties to use.
-
getEncryptionProperties
Get the EncryptionProperties to use.- Specified by:
getEncryptionPropertiesin interfaceSTSPropertiesMBean- Returns:
- the EncryptionProperties to use.
-
setIssuer
Set the STS issuer name- Specified by:
setIssuerin interfaceSTSPropertiesMBean- Parameters:
issuer- the STS issuer name
-
getIssuer
Get the STS issuer name- Specified by:
getIssuerin interfaceSTSPropertiesMBean- Returns:
- the STS issuer name
-
setSignatureProperties
Set the SignatureProperties to use.- Specified by:
setSignaturePropertiesin interfaceSTSPropertiesMBean- Parameters:
signatureProperties- the SignatureProperties to use.
-
getSignatureProperties
Get the SignatureProperties to use.- Specified by:
getSignaturePropertiesin interfaceSTSPropertiesMBean- Returns:
- the SignatureProperties to use.
-
setRealmParser
Set the RealmParser object to use.- Specified by:
setRealmParserin interfaceSTSPropertiesMBean- Parameters:
realmParser- the RealmParser object to use.
-
getRealmParser
Get the RealmParser object to use.- Specified by:
getRealmParserin interfaceSTSPropertiesMBean- Returns:
- the RealmParser object to use.
-
setIdentityMapper
Set the IdentityMapper object to use.- Specified by:
setIdentityMapperin interfaceSTSPropertiesMBean- Parameters:
identityMapper- the IdentityMapper object to use.
-
getIdentityMapper
Get the IdentityMapper object to use.- Specified by:
getIdentityMapperin interfaceSTSPropertiesMBean- Returns:
- the IdentityMapper object to use.
-
setRelationships
Description copied from interface:STSPropertiesMBeanSet the list of Relationship objects to use.- Specified by:
setRelationshipsin interfaceSTSPropertiesMBean- Parameters:
relationships- the Listobject to use.
-
getRelationships
Description copied from interface:STSPropertiesMBeanGet the list of Relationship objects to use.- Specified by:
getRelationshipsin interfaceSTSPropertiesMBean- Returns:
- the List
object to use.
-
getRelationshipResolver
Description copied from interface:STSPropertiesMBeanGet the RelationshipResolver objects to use.- Specified by:
getRelationshipResolverin interfaceSTSPropertiesMBean- Returns:
- the RelationshipResolver object to use.
-
getSamlRealmCodec
Description copied from interface:STSPropertiesMBeanGet the SAML Realm Codec object to use.- Specified by:
getSamlRealmCodecin interfaceSTSPropertiesMBean- Returns:
- the SAMLRealmCodec object to use.
-
setSamlRealmCodec
Description copied from interface:STSPropertiesMBeanSet the SAML Realm Codec object to use.- Specified by:
setSamlRealmCodecin interfaceSTSPropertiesMBean- Parameters:
samlRealmCodec- the SAMLRealmCodec object to use.
-
getBus
-
setBus
-
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:
isValidateUseKeyin interfaceSTSPropertiesMBean
-
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:
setValidateUseKeyin interfaceSTSPropertiesMBean- Parameters:
validateUseKey- whether to validate a client UseKey or not.
-