Package org.apache.cxf.sts
Interface STSPropertiesMBean
- All Known Implementing Classes:
StaticSTSProperties
public interface STSPropertiesMBean
This 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
Modifier and TypeMethodDescriptionvoidLoad/process the CallbackHandler, Crypto objects, etc.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.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.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 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 Details
-
configureProperties
Load/process the CallbackHandler, Crypto objects, etc.- Throws:
STSException
-
setCallbackHandler
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
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
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
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
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
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
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
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
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
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.
-