@Component public class SAML2SPLogic extends AbstractSAML2Logic<EntityTO>
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
loader
Constructor and Description |
---|
SAML2SPLogic() |
Modifier and Type | Method and Description |
---|---|
SAML2RequestTO |
createLoginRequest(String spEntityID,
String idpEntityID) |
SAML2RequestTO |
createLogoutRequest(String accessToken,
String spEntityID) |
void |
getMetadata(String spEntityID,
String urlContext,
OutputStream os) |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected EntityTO |
resolveReference(Method method,
Object... args) |
SAML2LoginResponseTO |
validateLoginResponse(SAML2ReceivedResponseTO response) |
void |
validateLogoutResponse(String accessToken,
SAML2ReceivedResponseTO response) |
check
@PreAuthorize(value="isAuthenticated()") public void getMetadata(String spEntityID, String urlContext, OutputStream os)
@PreAuthorize(value="hasRole(\'ANONYMOUS\')") public SAML2RequestTO createLoginRequest(String spEntityID, String idpEntityID)
@PreAuthorize(value="hasRole(\'ANONYMOUS\')") public SAML2LoginResponseTO validateLoginResponse(SAML2ReceivedResponseTO response)
@PreAuthorize(value="isAuthenticated() and not(hasRole(\'ANONYMOUS\'))") public SAML2RequestTO createLogoutRequest(String accessToken, String spEntityID)
@PreAuthorize(value="isAuthenticated() and not(hasRole(\'ANONYMOUS\'))") public void validateLogoutResponse(String accessToken, SAML2ReceivedResponseTO response)
protected EntityTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
UnresolvedReferenceException
public T resolveBeanReference(Method method, Object... args) throws UnresolvedReferenceException
method
- method.args
- method arguments.UnresolvedReferenceException
- in case of failures, read-only methods and unresolved bean.Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.