Package com.sun.identity.saml2.plugins
Class X509SubjectAttributeAuthorityMapper
- java.lang.Object
-
- com.sun.identity.saml2.plugins.X509SubjectAttributeAuthorityMapper
-
- All Implemented Interfaces:
AttributeAuthorityMapper
public class X509SubjectAttributeAuthorityMapper extends Object implements AttributeAuthorityMapper
This classX509SubjectAttributeAuthorityMapper
is the implementation of theAttributeAuthorityMapper
that is used by attribute authority to process attribute query with profile "urn:oasis:names:tc:SAML:2.0:profiles:query:attribute:X509".
-
-
Constructor Summary
Constructors Constructor Description X509SubjectAttributeAuthorityMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
authenticateRequester(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm)
Checks if the attribute query requester is valid.List
getAttributes(Object identity, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm)
Returns attributes of the specifed identity.Object
getIdentity(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm)
Returns an identity that matches the subject in the attribute query.void
validateAttributeQuery(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm)
Checks if the attribute query is valid.
-
-
-
Method Detail
-
authenticateRequester
public void authenticateRequester(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) throws SAML2Exception
Checks if the attribute query requester is valid.- Specified by:
authenticateRequester
in interfaceAttributeAuthorityMapper
- Parameters:
request
- HttpServletRequestresponse
- HttpServletResponseattrQuery
- attribute queryattrAuthorityEntityID
- entity ID of attribute authorityrealm
- the realm of hosted entity- Throws:
SAML2Exception
- if the request is not valid.
-
validateAttributeQuery
public void validateAttributeQuery(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) throws SAML2Exception
Checks if the attribute query is valid.- Specified by:
validateAttributeQuery
in interfaceAttributeAuthorityMapper
- Parameters:
request
- HttpServletRequestresponse
- HttpServletResponseattrQuery
- attribute queryattrAuthorityEntityID
- entity ID of attribute authorityrealm
- the realm of hosted entity- Throws:
SAML2Exception
- if the attribute query is not valid.
-
getIdentity
public Object getIdentity(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) throws SAML2Exception
Returns an identity that matches the subject in the attribute query.- Specified by:
getIdentity
in interfaceAttributeAuthorityMapper
- 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:
SAML2Exception
- if error occurs.
-
getAttributes
public List getAttributes(Object identity, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) throws SAML2Exception
Returns attributes of the specifed identity.- Specified by:
getAttributes
in interfaceAttributeAuthorityMapper
- 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:
SAML2Exception
- if error occurs.
-
-