Package org.apache.cxf.sts.service
Class StaticService
- java.lang.Object
-
- org.apache.cxf.sts.service.StaticService
-
- All Implemented Interfaces:
ServiceMBean
public class StaticService extends Object implements ServiceMBean
This class represents a (static) service. It can be spring-loaded with a set of Endpoint Strings, which are compiled into a collection of (reg-ex) Patterns.
-
-
Constructor Summary
Constructors Constructor Description StaticService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptionPropertiesgetEncryptionProperties()Get the EncryptionProperties to be used to encrypt tokens issued for this serviceStringgetKeyType()Get the default Key Type to be issued for this ServiceintgetMaxAddressLength()Get the maximum allowable address length to compare against the addresses set in setEndpointsStringgetTokenType()Get the default Token Type to be issued for this ServicebooleanisAddressInEndpoints(String address)Return true if the supplied address corresponds to a known address for this servicevoidsetEncryptionProperties(EncryptionProperties encryptionProperties)Set the EncryptionProperties to be used to encrypt tokens issued for this servicevoidsetEndpoints(List<String> endpoints)Set the list of endpoint addresses that correspond to this servicevoidsetKeyType(String keyType)Set the default Key Type to be issued for this ServicevoidsetMaxAddressLength(int maxAddressLength)Set the maximum allowable address length to compare against the addresses set in setEndpointsvoidsetTokenType(String tokenType)Set the default Token Type to be issued for this Service
-
-
-
Method Detail
-
isAddressInEndpoints
public boolean isAddressInEndpoints(String address)
Return true if the supplied address corresponds to a known address for this service- Specified by:
isAddressInEndpointsin interfaceServiceMBean
-
getTokenType
public String getTokenType()
Get the default Token Type to be issued for this Service- Specified by:
getTokenTypein interfaceServiceMBean
-
setTokenType
public void setTokenType(String tokenType)
Set the default Token Type to be issued for this Service- Specified by:
setTokenTypein interfaceServiceMBean
-
getKeyType
public String getKeyType()
Get the default Key Type to be issued for this Service- Specified by:
getKeyTypein interfaceServiceMBean
-
setKeyType
public void setKeyType(String keyType)
Set the default Key Type to be issued for this Service- Specified by:
setKeyTypein interfaceServiceMBean
-
setEndpoints
public void setEndpoints(List<String> endpoints)
Set the list of endpoint addresses that correspond to this service- Specified by:
setEndpointsin interfaceServiceMBean
-
getEncryptionProperties
public EncryptionProperties getEncryptionProperties()
Get the EncryptionProperties to be used to encrypt tokens issued for this service- Specified by:
getEncryptionPropertiesin interfaceServiceMBean
-
setEncryptionProperties
public void setEncryptionProperties(EncryptionProperties encryptionProperties)
Set the EncryptionProperties to be used to encrypt tokens issued for this service- Specified by:
setEncryptionPropertiesin interfaceServiceMBean
-
getMaxAddressLength
public int getMaxAddressLength()
Get the maximum allowable address length to compare against the addresses set in setEndpoints- Returns:
- the maximum allowable address length
-
setMaxAddressLength
public void setMaxAddressLength(int maxAddressLength)
Set the maximum allowable address length to compare against the addresses set in setEndpoints- Parameters:
maxAddressLength- the maximum allowable address length
-
-