Package org.apache.cxf.sts
Interface STSPropertiesMBean
-
- All Known Implementing Classes:
StaticSTSProperties
public interface STSPropertiesMBeanThis MBean represents the properties associated with the STS. It contains a single operation "configureProperties()" which allows subclasses to perform any custom loading/processing of the properties.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfigureProperties()Load/process the CallbackHandler, Crypto objects, etc.CallbackHandlergetCallbackHandler()Get the CallbackHandler object.org.apache.wss4j.common.crypto.CryptogetEncryptionCrypto()Get the encryption Crypto objectEncryptionPropertiesgetEncryptionProperties()Get the EncryptionProperties to use.StringgetEncryptionUsername()Get the username/alias to use to encrypt any issued tokens.IdentityMappergetIdentityMapper()Get the IdentityMapper object to use.StringgetIssuer()Get the STS issuer nameRealmParsergetRealmParser()Get the RealmParser object to use.RelationshipResolvergetRelationshipResolver()Get the RelationshipResolver objects to use.List<Relationship>getRelationships()Get the list of Relationship objects to use.SAMLRealmCodecgetSamlRealmCodec()Get the SAML Realm Codec object to use.org.apache.wss4j.common.crypto.CryptogetSignatureCrypto()Get the signature Crypto objectSignaturePropertiesgetSignatureProperties()Get the SignatureProperties to use.StringgetSignatureUsername()Get the username/alias to use to sign any issued tokensbooleanisValidateUseKey()Get whether to validate a client Public Key or Certificate presented as part of a UseKey element.voidsetCallbackHandler(CallbackHandler callbackHandler)Set the CallbackHandler object.voidsetEncryptionCrypto(org.apache.wss4j.common.crypto.Crypto encryptionCrypto)Set the encryption Crypto objectvoidsetEncryptionProperties(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.voidsetIssuer(String issuer)Set 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 objectvoidsetSignatureProperties(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.
-
-
-
Method Detail
-
configureProperties
void configureProperties() throws STSExceptionLoad/process the CallbackHandler, Crypto objects, etc.- Throws:
STSException
-
setCallbackHandler
void setCallbackHandler(CallbackHandler callbackHandler)
Set the CallbackHandler object.- Parameters:
callbackHandler- the CallbackHandler object.
-
getCallbackHandler
CallbackHandler getCallbackHandler()
Get the CallbackHandler object.- Returns:
- the CallbackHandler object.
-
setSignatureCrypto
void setSignatureCrypto(org.apache.wss4j.common.crypto.Crypto signatureCrypto)
Set the signature Crypto object- Parameters:
signatureCrypto- the signature Crypto object
-
getSignatureCrypto
org.apache.wss4j.common.crypto.Crypto getSignatureCrypto()
Get the signature Crypto object- Returns:
- the signature Crypto object
-
setSignatureUsername
void setSignatureUsername(String signatureUsername)
Set the username/alias to use to sign any issued tokens- Parameters:
signatureUsername- the username/alias to use to sign any issued tokens
-
getSignatureUsername
String getSignatureUsername()
Get the username/alias to use to sign any issued tokens- Returns:
- the username/alias to use to sign any issued tokens
-
setEncryptionCrypto
void setEncryptionCrypto(org.apache.wss4j.common.crypto.Crypto encryptionCrypto)
Set the encryption Crypto object- Parameters:
encryptionCrypto- the encryption Crypto object
-
getEncryptionCrypto
org.apache.wss4j.common.crypto.Crypto getEncryptionCrypto()
Get the encryption Crypto object- Returns:
- the encryption Crypto object
-
setEncryptionUsername
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.- Parameters:
encryptionUsername- the username/alias to use to encrypt any issued tokens
-
getEncryptionUsername
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- Returns:
- the username/alias to use to encrypt any issued tokens
-
setEncryptionProperties
void setEncryptionProperties(EncryptionProperties encryptionProperties)
Set the EncryptionProperties to use.- Parameters:
encryptionProperties- the EncryptionProperties to use.
-
getEncryptionProperties
EncryptionProperties getEncryptionProperties()
Get the EncryptionProperties to use.- Returns:
- the EncryptionProperties to use.
-
setIssuer
void setIssuer(String issuer)
Set the STS issuer name- Parameters:
issuer- the STS issuer name
-
getIssuer
String getIssuer()
Get the STS issuer name- Returns:
- the STS issuer name
-
setSignatureProperties
void setSignatureProperties(SignatureProperties signatureProperties)
Set the SignatureProperties to use.- Parameters:
signatureProperties- the SignatureProperties to use.
-
getSignatureProperties
SignatureProperties getSignatureProperties()
Get the SignatureProperties to use.- Returns:
- the SignatureProperties to use.
-
setRealmParser
void setRealmParser(RealmParser realmParser)
Set the RealmParser object to use.- Parameters:
realmParser- the RealmParser object to use.
-
getRealmParser
RealmParser getRealmParser()
Get the RealmParser object to use.- Returns:
- the RealmParser object to use.
-
setIdentityMapper
void setIdentityMapper(IdentityMapper identityMapper)
Set the IdentityMapper object to use.- Parameters:
identityMapper- the IdentityMapper object to use.
-
getIdentityMapper
IdentityMapper getIdentityMapper()
Get the IdentityMapper object to use.- Returns:
- the IdentityMapper object to use.
-
setRelationships
void setRelationships(List<Relationship> relationships)
Set the list of Relationship objects to use.- Parameters:
relationships- the Listobject to use.
-
getRelationships
List<Relationship> getRelationships()
Get the list of Relationship objects to use.- Returns:
- the List
object to use.
-
getRelationshipResolver
RelationshipResolver getRelationshipResolver()
Get the RelationshipResolver objects to use.- Returns:
- the RelationshipResolver object to use.
-
getSamlRealmCodec
SAMLRealmCodec getSamlRealmCodec()
Get the SAML Realm Codec object to use.- Returns:
- the SAMLRealmCodec object to use.
-
setSamlRealmCodec
void setSamlRealmCodec(SAMLRealmCodec samlRealmCodec)
Set the SAML Realm Codec object to use.- Parameters:
samlRealmCodec- the SAMLRealmCodec object to use.
-
isValidateUseKey
boolean isValidateUseKey()
Get whether to validate a client Public Key or Certificate presented as part of a UseKey element. This is true by default.
-
setValidateUseKey
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.- Parameters:
validateUseKey- whether to validate a client UseKey or not.
-
-