|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.sts.operation.AbstractOperation
public abstract class AbstractOperation
This abstract class contains some common functionality for different operations.
Field Summary | |
---|---|
protected ClaimsManager |
claimsManager
|
protected List<TokenDelegationHandler> |
delegationHandlers
|
protected boolean |
encryptIssuedToken
|
protected STSEventListener |
eventPublisher
|
protected boolean |
returnReferences
|
protected List<ServiceMBean> |
services
|
protected STSPropertiesMBean |
stsProperties
|
static QName |
TOKEN_TYPE
|
protected List<TokenProvider> |
tokenProviders
|
protected TokenStore |
tokenStore
|
protected List<TokenValidator> |
tokenValidators
|
Constructor Summary | |
---|---|
AbstractOperation()
|
Method Summary | |
---|---|
protected void |
checkClaimsSupport(ClaimCollection requestedClaims)
|
protected static LifetimeType |
createLifetime(Date tokenCreated,
Date tokenExpires)
Create a LifetimeType object given a created + expires Dates |
protected static RequestedReferenceType |
createRequestedReference(String tokenId,
String tokenType,
boolean attached)
Create a RequestedReferenceType object using a token id and tokenType |
protected static RequestedReferenceType |
createRequestedReference(TokenReference tokenReference,
boolean attached)
Create a RequestedReferenceType object using a TokenReference object |
protected TokenProviderParameters |
createTokenProviderParameters(RequestParser requestParser,
WebServiceContext context)
Create a TokenProviderParameters object given a RequestParser and WebServiceContext object |
protected Element |
encryptSecret(byte[] secret,
EncryptionProperties encryptionProperties,
KeyRequirements keyRequirements)
Encrypt a secret using the given arguments producing a DOM EncryptedKey element |
protected Element |
encryptToken(Element element,
String id,
EncryptionProperties encryptionProperties,
KeyRequirements keyRequirements,
WebServiceContext context)
Encrypt a Token element using the given arguments. |
protected String |
extractAddressFromAppliesTo(Element appliesTo)
Extract an address from an AppliesTo DOM element |
protected static org.apache.xml.security.stax.securityToken.SecurityToken |
findInboundSecurityToken(org.apache.xml.security.stax.securityEvent.SecurityEventConstants.Event event,
MessageContext messageContext)
|
ClaimsManager |
getClaimsManager()
|
List<TokenDelegationHandler> |
getDelegationHandlers()
|
List<TokenProvider> |
getTokenProviders()
|
TokenStore |
getTokenStore()
|
List<TokenValidator> |
getTokenValidators()
|
boolean |
isReturnReferences()
|
protected RequestParser |
parseRequest(RequestSecurityTokenType request,
WebServiceContext context)
Check the arguments from the STSProvider and parse the request. |
protected void |
performDelegationHandling(RequestParser requestParser,
WebServiceContext context,
ReceivedToken token,
Principal tokenPrincipal,
Set<Principal> tokenRoles)
|
protected void |
processValidToken(TokenProviderParameters providerParameters,
ReceivedToken validatedToken,
TokenValidatorResponse tokenResponse)
|
protected void |
publishEvent(AbstractSTSEvent event)
|
void |
setClaimsManager(ClaimsManager claimsManager)
|
void |
setDelegationHandlers(List<TokenDelegationHandler> delegationHandlers)
|
void |
setEncryptIssuedToken(boolean encryptIssuedToken)
|
void |
setEventListener(STSEventListener eventListener)
|
void |
setReturnReferences(boolean returnReferences)
|
void |
setServices(List<ServiceMBean> services)
|
void |
setStsProperties(STSPropertiesMBean stsProperties)
|
void |
setTokenProviders(List<TokenProvider> tokenProviders)
|
void |
setTokenStore(TokenStore tokenStore)
|
void |
setTokenValidators(List<TokenValidator> tokenValidators)
|
protected TokenValidatorResponse |
validateReceivedToken(WebServiceContext context,
String realm,
TokenRequirements tokenRequirements,
ReceivedToken token)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final QName TOKEN_TYPE
protected STSPropertiesMBean stsProperties
protected boolean encryptIssuedToken
protected List<ServiceMBean> services
protected List<TokenProvider> tokenProviders
protected List<TokenValidator> tokenValidators
protected boolean returnReferences
protected TokenStore tokenStore
protected ClaimsManager claimsManager
protected STSEventListener eventPublisher
protected List<TokenDelegationHandler> delegationHandlers
Constructor Detail |
---|
public AbstractOperation()
Method Detail |
---|
public boolean isReturnReferences()
public void setReturnReferences(boolean returnReferences)
public TokenStore getTokenStore()
public void setTokenStore(TokenStore tokenStore)
public void setStsProperties(STSPropertiesMBean stsProperties)
public void setEncryptIssuedToken(boolean encryptIssuedToken)
public void setServices(List<ServiceMBean> services)
public void setTokenProviders(List<TokenProvider> tokenProviders)
public List<TokenDelegationHandler> getDelegationHandlers()
public void setDelegationHandlers(List<TokenDelegationHandler> delegationHandlers)
public List<TokenProvider> getTokenProviders()
public void setTokenValidators(List<TokenValidator> tokenValidators)
public List<TokenValidator> getTokenValidators()
public ClaimsManager getClaimsManager()
public void setClaimsManager(ClaimsManager claimsManager)
protected RequestParser parseRequest(RequestSecurityTokenType request, WebServiceContext context)
protected static RequestedReferenceType createRequestedReference(TokenReference tokenReference, boolean attached)
protected static RequestedReferenceType createRequestedReference(String tokenId, String tokenType, boolean attached)
protected static LifetimeType createLifetime(Date tokenCreated, Date tokenExpires)
protected Element encryptToken(Element element, String id, EncryptionProperties encryptionProperties, KeyRequirements keyRequirements, WebServiceContext context) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
protected Element encryptSecret(byte[] secret, EncryptionProperties encryptionProperties, KeyRequirements keyRequirements) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
protected String extractAddressFromAppliesTo(Element appliesTo)
protected TokenProviderParameters createTokenProviderParameters(RequestParser requestParser, WebServiceContext context)
protected TokenValidatorResponse validateReceivedToken(WebServiceContext context, String realm, TokenRequirements tokenRequirements, ReceivedToken token)
protected void performDelegationHandling(RequestParser requestParser, WebServiceContext context, ReceivedToken token, Principal tokenPrincipal, Set<Principal> tokenRoles)
protected void checkClaimsSupport(ClaimCollection requestedClaims)
protected void processValidToken(TokenProviderParameters providerParameters, ReceivedToken validatedToken, TokenValidatorResponse tokenResponse)
public void setEventListener(STSEventListener eventListener)
protected void publishEvent(AbstractSTSEvent event)
protected static org.apache.xml.security.stax.securityToken.SecurityToken findInboundSecurityToken(org.apache.xml.security.stax.securityEvent.SecurityEventConstants.Event event, MessageContext messageContext) throws org.apache.xml.security.exceptions.XMLSecurityException
org.apache.xml.security.exceptions.XMLSecurityException
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |