public abstract class AbstractOperation extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowCustomContent |
protected ClaimsManager |
claimsManager |
protected List<TokenDelegationHandler> |
delegationHandlers |
protected boolean |
encryptIssuedToken |
protected STSEventListener |
eventPublisher |
protected boolean |
includeLifetimeElement |
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 |
protected TokenWrapper |
tokenWrapper |
Constructor and Description |
---|
AbstractOperation() |
Modifier and Type | Method and Description |
---|---|
protected static LifetimeType |
createLifetime(Instant tokenCreated,
Instant 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(RequestRequirements requestRequirements,
Principal principal,
Map<String,Object> messageContext)
Create a TokenProviderParameters object
|
protected Element |
encryptSecret(byte[] secret,
EncryptionProperties encryptionProperties,
KeyRequirements keyRequirements)
Encrypt a secret using the given arguments producing a DOM EncryptedKey element
|
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,
Map<String,Object> messageContext) |
ClaimsManager |
getClaimsManager() |
List<TokenDelegationHandler> |
getDelegationHandlers() |
List<TokenProvider> |
getTokenProviders() |
TokenStore |
getTokenStore() |
List<TokenValidator> |
getTokenValidators() |
TokenWrapper |
getTokenWrapper() |
boolean |
isAllowCustomContent() |
boolean |
isIncludeLifetimeElement() |
boolean |
isReturnReferences() |
protected RequestRequirements |
parseRequest(RequestSecurityTokenType request,
Map<String,Object> messageContext)
Check the arguments from the STSProvider and parse the request.
|
protected void |
performDelegationHandling(RequestRequirements requestRequirements,
Principal principal,
Map<String,Object> messageContext,
ReceivedToken token,
Principal tokenPrincipal,
Set<Principal> tokenRoles) |
protected void |
processValidToken(TokenProviderParameters providerParameters,
ReceivedToken validatedToken,
TokenValidatorResponse tokenResponse) |
protected void |
publishEvent(AbstractSTSEvent event) |
void |
setAllowCustomContent(boolean allowCustomContent) |
void |
setClaimsManager(ClaimsManager claimsManager) |
void |
setDelegationHandlers(List<TokenDelegationHandler> delegationHandlers) |
void |
setEncryptIssuedToken(boolean encryptIssuedToken) |
void |
setEventListener(STSEventListener eventListener) |
void |
setIncludeLifetimeElement(boolean value) |
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) |
void |
setTokenWrapper(TokenWrapper tokenWrapper) |
protected TokenValidatorResponse |
validateReceivedToken(Principal principal,
Map<String,Object> messageContext,
String realm,
TokenRequirements tokenRequirements,
ReceivedToken token) |
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
protected TokenWrapper tokenWrapper
protected boolean allowCustomContent
protected boolean includeLifetimeElement
public boolean isAllowCustomContent()
public void setAllowCustomContent(boolean allowCustomContent)
public TokenWrapper getTokenWrapper()
public void setTokenWrapper(TokenWrapper tokenWrapper)
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)
public void setIncludeLifetimeElement(boolean value)
public boolean isIncludeLifetimeElement()
protected RequestRequirements parseRequest(RequestSecurityTokenType request, Map<String,Object> messageContext)
protected static RequestedReferenceType createRequestedReference(TokenReference tokenReference, boolean attached)
protected static RequestedReferenceType createRequestedReference(String tokenId, String tokenType, boolean attached)
protected static LifetimeType createLifetime(Instant tokenCreated, Instant tokenExpires)
protected Element encryptSecret(byte[] secret, EncryptionProperties encryptionProperties, KeyRequirements keyRequirements) throws WSSecurityException
WSSecurityException
protected String extractAddressFromAppliesTo(Element appliesTo)
protected TokenProviderParameters createTokenProviderParameters(RequestRequirements requestRequirements, Principal principal, Map<String,Object> messageContext)
protected TokenValidatorResponse validateReceivedToken(Principal principal, Map<String,Object> messageContext, String realm, TokenRequirements tokenRequirements, ReceivedToken token)
protected void performDelegationHandling(RequestRequirements requestRequirements, Principal principal, Map<String,Object> messageContext, ReceivedToken token, Principal tokenPrincipal, Set<Principal> tokenRoles)
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, Map<String,Object> messageContext) throws org.apache.xml.security.exceptions.XMLSecurityException
org.apache.xml.security.exceptions.XMLSecurityException
Copyright © 2018 JBoss by Red Hat. All rights reserved.