Package org.apache.cxf.ws.security.trust
Class STSClient
- java.lang.Object
-
- org.apache.cxf.ws.security.trust.AbstractSTSClient
-
- org.apache.cxf.ws.security.trust.STSClient
-
- All Implemented Interfaces:
Configurable,InterceptorProvider
public class STSClient extends AbstractSTSClient
A extension of AbstractSTSClient to communicate with an STS and return a SecurityToken to the client.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.cxf.ws.security.trust.AbstractSTSClient
AbstractSTSClient.STSResponse
-
-
Field Summary
-
Fields inherited from class org.apache.cxf.ws.security.trust.AbstractSTSClient
actAs, addressingNamespace, algorithmSuite, allowRenewing, allowRenewingAfterExpiry, bus, claims, claimsCallbackHandler, client, context, ctx, customContent, enableAppliesTo, enableLifetime, endpointName, features, in, inFault, isSecureConv, isSpnego, keySize, keyType, location, message, name, namespace, onBehalfOf, out, outFault, policy, requiresEntropy, sendKeyType, sendRenewing, serviceName, soapVersion, template, tlsClientParameters, tokenType, ttl, useCertificateForConfirmationKeyInfo, useKeyCertificate, wsdlLocation, wspNamespace
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancelSecurityToken(SecurityToken token)SecurityTokenrenewSecurityToken(SecurityToken tok)SecurityTokenrequestSecurityToken()SecurityTokenrequestSecurityToken(String appliesTo)SecurityTokenrequestSecurityToken(String appliesTo, String binaryExchange)SecurityTokenrequestSecurityToken(String appliesTo, String action, String requestType, String binaryExchange)List<SecurityToken>validateSecurityToken(SecurityToken tok)protected List<SecurityToken>validateSecurityToken(SecurityToken tok, String tokentype)-
Methods inherited from class org.apache.cxf.ws.security.trust.AbstractSTSClient
addAppliesTo, addBinaryExchange, addClaims, addKeySize, addLifetime, addRequestType, addTokenType, cancel, configureViaEPR, createClient, createCrypto, createHandler, createSecurityToken, decryptKey, findID, findMEXLocation, findMEXLocation, findOperation, getActAsToken, getAddressingAssertion, getBeanName, getCert, getClaimsCallbackHandler, getClient, getContext, getCustomContent, getDelegationSecurityToken, getDocumentElement, getEndpointQName, getFeatures, getIDFromSTR, getInFaultInterceptors, getInInterceptors, getKeySize, getLocation, getOnBehalfOfToken, getOutFaultInterceptors, getOutInterceptors, getProperties, getProperty, getRequestContext, getServiceQName, getTokenType, getUseKeyCertificate, getWsdlLocation, getWspNamespace, isAllowRenewing, isAllowRenewingAfterExpiry, isEnableAppliesTo, isRequiresEntropy, isSecureConv, isSpnego, issue, isUseCertificateForConfirmationKeyInfo, renew, setActAs, setAddressingNamespace, setAlgorithmSuite, setAllowRenewing, setAllowRenewingAfterExpiry, setBeanName, setClaims, setClaimsCallbackHandler, setContext, setCustomContent, setEnableAppliesTo, setEnableLifetime, setEndpointName, setEndpointQName, setFeatures, setInFaultInterceptors, setInInterceptors, setKeySize, setKeyType, setLocation, setMessage, setNamespace, setOnBehalfOf, setOutFaultInterceptors, setOutInterceptors, setPolicy, setPolicyInternal, setPolicyInternal, setPolicyInternal, setProperties, setRequiresEntropy, setSecureConv, setSendKeyType, setSendRenewing, setServiceName, setServiceQName, setSoap11, setSoap11, setSoap12, setSpnego, setTemplate, setTlsClientParameters, setTokenType, setTrust, setTtl, setUseCertificateForConfirmationKeyInfo, setUseKeyCertificate, setWsdlLocation, setWspNamespace, useSecondaryParameters, validate, writeElementsForRSTPublicKey, writeElementsForRSTSymmetricKey, writeKeyType
-
-
-
-
Constructor Detail
-
STSClient
public STSClient(Bus b)
-
-
Method Detail
-
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 binaryExchange) throws Exception
- Throws:
Exception
-
requestSecurityToken
public SecurityToken requestSecurityToken(String appliesTo, String action, String requestType, String binaryExchange) throws Exception
- Throws:
Exception
-
renewSecurityToken
public SecurityToken renewSecurityToken(SecurityToken tok) throws Exception
- Throws:
Exception
-
validateSecurityToken
public List<SecurityToken> validateSecurityToken(SecurityToken tok) throws Exception
- Throws:
Exception
-
validateSecurityToken
protected List<SecurityToken> validateSecurityToken(SecurityToken tok, String tokentype) throws Exception
- Throws:
Exception
-
cancelSecurityToken
public boolean cancelSecurityToken(SecurityToken token) throws Exception
- Throws:
Exception
-
-