Package com.sun.identity.saml2.plugins
Interface AttributeAuthorityMapper
- All Superinterfaces:
SAMLPlugin
This interface
AttributeAuthorityMapper
is used by attribute
authority to process attribute query. Make sure to use thread-safe code if
you implement the AttributeAuthorityMapper. You can use the attributes on
the HttpRequest instead of synchronizing them. The default
AttributeAuthorityMapper uses an attribute on the HttpServletRequest to
pass information to the AttributeQueryUtil.-
Field Summary
Fields inherited from interface org.forgerock.openam.saml2.plugins.SAMLPlugin
HOSTED_ENTITY_ID, REALM
-
Method Summary
Modifier and TypeMethodDescriptionvoid
authenticateRequester
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) Checks if the attribute query requester is valid.getAttributes
(Object identity, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) Returns attributes of the specifed identity.getIdentity
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) Returns an identity that matches the subject in the attribute query.void
validateAttributeQuery
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) Checks if the attribute query is valid.
-
Method Details
-
authenticateRequester
void authenticateRequester(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) throws com.sun.identity.saml2.common.SAML2Exception Checks if the attribute query requester is valid.- Parameters:
request
- HttpServletRequestresponse
- HttpServletResponseattrQuery
- attribute queryattrAuthorityEntityID
- entity ID of attribute authorityrealm
- the realm of hosted entity- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the request is not valid.
-
validateAttributeQuery
void validateAttributeQuery(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) throws com.sun.identity.saml2.common.SAML2Exception Checks if the attribute query is valid.- Parameters:
request
- HttpServletRequestresponse
- HttpServletResponseattrQuery
- attribute queryattrAuthorityEntityID
- entity ID of attribute authorityrealm
- the realm of hosted entity- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the attribute query is not valid.
-
getIdentity
Object getIdentity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) throws com.sun.identity.saml2.common.SAML2Exception Returns an identity that matches the subject in the attribute query.- Parameters:
request
- HttpServletRequestresponse
- HttpServletResponseattrQuery
- attribute queryattrAuthorityEntityID
- entity ID of attribute authorityrealm
- the realm of hosted entity- Returns:
- an identity that matches the subject in the attribute query.
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs.
-
getAttributes
List getAttributes(Object identity, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) throws com.sun.identity.saml2.common.SAML2Exception Returns attributes of the specifed identity.- Parameters:
identity
- the identityattrQuery
- attribute queryattrAuthorityEntityID
- entity ID of attribute authorityrealm
- the realm of hosted entity- Returns:
- a list of
com.sun.identity.saml2.assertion.Attribute
. - Throws:
com.sun.identity.saml2.common.SAML2Exception
- if error occurs.
-