Apache CXF API

org.apache.cxf.ws.security.trust
Class STSClient

java.lang.Object
  extended by org.apache.cxf.ws.security.trust.AbstractSTSClient
      extended by 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, enableAppliesTo, enableLifetime, endpointName, features, in, inFault, isSecureConv, isSpnego, keySize, keyType, location, message, name, namespace, onBehalfOf, out, outFault, policy, requiresEntropy, sendKeyType, sendRenewing, serviceName, soapVersion, template, tokenType, ttl, useCertificateForConfirmationKeyInfo, useKeyCertificate, wsdlLocation, wspNamespace
 
Constructor Summary
STSClient(Bus b)
           
 
Method Summary
 boolean cancelSecurityToken(SecurityToken token)
           
 SecurityToken renewSecurityToken(SecurityToken tok)
           
 SecurityToken requestSecurityToken()
           
 SecurityToken requestSecurityToken(String appliesTo)
           
 SecurityToken requestSecurityToken(String appliesTo, String binaryExchange)
           
 SecurityToken requestSecurityToken(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, 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, setEnableAppliesTo, setEnableLifetime, setEndpointName, setEndpointQName, setFeatures, setInFaultInterceptors, setInInterceptors, setKeySize, setKeyType, setLocation, setMessage, setNamespace, setOnBehalfOf, setOnBehalfOfElement, setOutFaultInterceptors, setOutInterceptors, setPolicy, setPolicyInternal, setPolicyInternal, setPolicyInternal, setProperties, setRequiresEntropy, setSecureConv, setSendKeyType, setSendRenewing, setServiceName, setServiceQName, setSoap11, setSoap11, setSoap12, setSpnego, setTemplate, setTokenType, setTrust, setTtl, setUseCertificateForConfirmationKeyInfo, setUseKeyCertificate, setWsdlLocation, setWspNamespace, useSecondaryParameters, validate, writeElementsForRSTPublicKey, writeElementsForRSTSymmetricKey, writeKeyType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

Apache CXF API

Apache CXF