org.apache.cxf.ws.security.trust
Class STSClient
java.lang.Object
org.apache.cxf.ws.security.trust.STSClient
- All Implemented Interfaces:
- org.apache.cxf.configuration.Configurable, org.apache.cxf.interceptor.InterceptorProvider
public class STSClient
- extends Object
- implements org.apache.cxf.configuration.Configurable, org.apache.cxf.interceptor.InterceptorProvider
|
Constructor Summary |
STSClient(org.apache.cxf.Bus b)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STSClient
public STSClient(org.apache.cxf.Bus b)
getBeanName
public String getBeanName()
- Specified by:
getBeanName in interface org.apache.cxf.configuration.Configurable
setBeanName
public void setBeanName(String s)
setLocation
public void setLocation(String location)
setPolicy
public void setPolicy(Object newPolicy)
- Sets the WS-P policy that is applied to communications between this client and the remote server
if no value is supplied for
setWsdlLocation(String).
Accepts Policy or Element as input.
- Parameters:
newPolicy - the policy object
- Throws:
IllegalArgumentException - if newPolicy is not one of the supported types.
setSoap12
public void setSoap12()
setSoap11
public void setSoap11()
setSoap11
public void setSoap11(boolean b)
setAddressingNamespace
public void setAddressingNamespace(String ad)
setTrust
public void setTrust(Trust10 trust)
setTrust
public void setTrust(Trust13 trust)
isRequiresEntropy
public boolean isRequiresEntropy()
setRequiresEntropy
public void setRequiresEntropy(boolean requiresEntropy)
isSecureConv
public boolean isSecureConv()
setSecureConv
public void setSecureConv(boolean secureConv)
setAlgorithmSuite
public void setAlgorithmSuite(AlgorithmSuite ag)
getRequestContext
public Map<String,Object> getRequestContext()
setProperties
public void setProperties(Map<String,Object> p)
getProperties
public Map<String,Object> getProperties()
setWsdlLocation
public void setWsdlLocation(String wsdl)
getWsdlLocation
public String getWsdlLocation()
setServiceName
public void setServiceName(String qn)
setEndpointName
public void setEndpointName(String qn)
setServiceQName
public void setServiceQName(QName qn)
getServiceQName
public QName getServiceQName()
setEndpointQName
public void setEndpointQName(QName qn)
getEndpointQName
public QName getEndpointQName()
setActAs
public void setActAs(Object actAs)
setKeySize
public void setKeySize(int i)
getKeySize
public int getKeySize()
setTokenType
public void setTokenType(String tokenType)
setSendKeyType
public void setSendKeyType(boolean sendKeyType)
setKeyType
public void setKeyType(String keyType)
setOnBehalfOfElement
public void setOnBehalfOfElement(Element onBehalfOfElement)
setUseCertificateForConfirmationKeyInfo
public void setUseCertificateForConfirmationKeyInfo(boolean useCertificate)
- Indicate whether to use the signer's public X509 certificate for the subject confirmation key info
when creating a RequestsSecurityToken message. If the property is set to 'false', only the public key
value will be provided in the request. If the property is set to 'true' the complete certificate will
be sent in the request.
Note: this setting is only applicable for assertions that use an asymmetric proof key
isUseCertificateForConfirmationKeyInfo
public boolean isUseCertificateForConfirmationKeyInfo()
setPolicyInternal
protected void setPolicyInternal(org.apache.neethi.Policy newPolicy)
setPolicyInternal
protected void setPolicyInternal(Element newPolicy)
requestSecurityToken
public SecurityToken requestSecurityToken()
throws Exception
- Throws:
Exception
requestSecurityToken
public SecurityToken requestSecurityToken(String appliesTo)
throws Exception
- Throws:
Exception
requestSecurityToken
public SecurityToken requestSecurityToken(String appliesTo,
String action,
String requestType,
SecurityToken target)
throws Exception
- Throws:
Exception
renewSecurityToken
public void renewSecurityToken(SecurityToken tok)
throws Exception
- Throws:
Exception
validateSecurityToken
public boolean validateSecurityToken(SecurityToken tok)
throws Exception
- Throws:
Exception
cancelSecurityToken
public void cancelSecurityToken(SecurityToken token)
throws Exception
- Throws:
Exception
setTemplate
public void setTemplate(Element rstTemplate)
getOutFaultInterceptors
public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getOutFaultInterceptors()
- Specified by:
getOutFaultInterceptors in interface org.apache.cxf.interceptor.InterceptorProvider
getInFaultInterceptors
public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getInFaultInterceptors()
- Specified by:
getInFaultInterceptors in interface org.apache.cxf.interceptor.InterceptorProvider
getInInterceptors
public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getInInterceptors()
- Specified by:
getInInterceptors in interface org.apache.cxf.interceptor.InterceptorProvider
getOutInterceptors
public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getOutInterceptors()
- Specified by:
getOutInterceptors in interface org.apache.cxf.interceptor.InterceptorProvider
setInInterceptors
public void setInInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)
setInFaultInterceptors
public void setInFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)
setOutInterceptors
public void setOutInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)
setOutFaultInterceptors
public void setOutFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)
setFeatures
public void setFeatures(List<org.apache.cxf.feature.AbstractFeature> f)
getFeatures
public List<org.apache.cxf.feature.AbstractFeature> getFeatures()
Apache CXF