public class AttributeQueryClaimsHandler extends Object implements org.apache.cxf.sts.claims.ClaimsHandler
Modifier and Type | Field and Description |
---|---|
protected String |
destination |
protected static String |
ERROR_RETRIEVING_ATTRIBUTES |
protected String |
externalAttributeStoreUrl |
protected String |
issuer |
protected SimpleSign |
simpleSign |
Constructor and Description |
---|
AttributeQueryClaimsHandler() |
Modifier and Type | Method and Description |
---|---|
protected AttributeQueryClient |
createAttributeQueryClient(SimpleSign simpleSign,
String externalAttributeStoreUrl,
String issuer,
String destination)
Creates a client to interface with an external attribute store via an AttributeQuery request.
|
protected org.apache.cxf.sts.claims.ProcessedClaimCollection |
createClaims(org.apache.cxf.sts.claims.ProcessedClaimCollection claimsCollection,
org.opensaml.saml.saml2.core.Assertion assertion)
Creates claims from the extracted attributes.
|
protected Dispatch<StreamSource> |
createDispatcher(Service service)
Creates a dispatcher for dispatching requests.
|
protected Service |
createService()
Creates a dynamic service from the provided wsdl location.
|
protected org.apache.cxf.sts.claims.ProcessedClaim |
createSingleValuedClaim(String claimType,
String claimValue)
Creates a single valued claim.
|
protected org.apache.cxf.sts.claims.ProcessedClaimCollection |
getAttributes(String nameId)
Gets the attributes for the supplied user from the external attribute store.
|
protected String |
getNameId(Principal principal)
Retrieve the name from the principal.
|
List<URI> |
getSupportedClaimTypes()
Gets the supported claim types.
|
org.apache.cxf.sts.claims.ProcessedClaimCollection |
retrieveClaimValues(org.apache.cxf.rt.security.claims.ClaimCollection claims,
org.apache.cxf.sts.claims.ClaimsParameters parameters)
Retrieves claims from the external attribute store.
|
void |
setAttributeMapLocation(String attributeMapLocation) |
void |
setDestination(String destination) |
void |
setEncryptionProperties(Object encryptionProperties) |
void |
setExternalAttributeStoreUrl(String externalAttributeStoreUrl) |
void |
setIssuer(String issuer) |
void |
setPortName(String portName) |
void |
setServiceName(String serviceName) |
void |
setSignatureProperties(Object signatureProperties) |
void |
setSimpleSign(SimpleSign simpleSign) |
void |
setSupportedClaims(List<String> supportedClaims) |
void |
setWsdlLocation(String wsdlLocation) |
protected static final String ERROR_RETRIEVING_ATTRIBUTES
protected SimpleSign simpleSign
protected String externalAttributeStoreUrl
protected String issuer
protected String destination
public List<URI> getSupportedClaimTypes()
getSupportedClaimTypes
in interface org.apache.cxf.sts.claims.ClaimsHandler
public org.apache.cxf.sts.claims.ProcessedClaimCollection retrieveClaimValues(org.apache.cxf.rt.security.claims.ClaimCollection claims, org.apache.cxf.sts.claims.ClaimsParameters parameters)
retrieveClaimValues
in interface org.apache.cxf.sts.claims.ClaimsHandler
claims
- The collection of claims.URISyntaxException
protected String getNameId(Principal principal)
principal
- of the user.protected org.apache.cxf.sts.claims.ProcessedClaimCollection getAttributes(String nameId) throws URISyntaxException
nameId
- used for the request.URISyntaxException
protected org.apache.cxf.sts.claims.ProcessedClaimCollection createClaims(org.apache.cxf.sts.claims.ProcessedClaimCollection claimsCollection, org.opensaml.saml.saml2.core.Assertion assertion) throws URISyntaxException
claimsCollection
- The collection of claims.assertion
- Assertion from the response.URISyntaxException
protected org.apache.cxf.sts.claims.ProcessedClaim createSingleValuedClaim(String claimType, String claimValue) throws URISyntaxException
claimType
- The claim type.claimValue
- The claim value.URISyntaxException
protected AttributeQueryClient createAttributeQueryClient(SimpleSign simpleSign, String externalAttributeStoreUrl, String issuer, String destination)
simpleSign
- to create signature for requestexternalAttributeStoreUrl
- endpoint of external web serviceissuer
- of requestdestination
- of requestprotected Service createService()
protected Dispatch<StreamSource> createDispatcher(Service service)
public void setSignatureProperties(Object signatureProperties)
public void setEncryptionProperties(Object encryptionProperties)
public void setWsdlLocation(String wsdlLocation)
public void setServiceName(String serviceName)
public void setPortName(String portName)
public void setSimpleSign(SimpleSign simpleSign)
public void setExternalAttributeStoreUrl(String externalAttributeStoreUrl)
public void setIssuer(String issuer)
public void setDestination(String destination)
public void setAttributeMapLocation(String attributeMapLocation)
This work is licensed under a Creative Commons Attribution 4.0 International License.