public interface SAMLMessageManager
| Modifier and Type | Method and Description |
|---|---|
void |
deleteKeys()
Deletes any generated DSA keys
This also makes the SAMLMessageManager unable
to sign requests.
|
SAMLAuthResponse |
generateAuthResponse(SAMLAuthRequest authRequest,
String authenticatedUser)
Generates a successful authentication
response for an authentication request
given the username of the authenticated
user.
|
void |
generateKeys()
Generates and stores the private and public keys
|
Optional<KeyPair> |
getKeys() |
boolean |
hasValidKeys()
The SAMLMessageManager is ready to perform generate signatures
if a valid key-pair has been loaded/generated.
|
SAMLAuthRequest |
parseAuthRequest(String samlRequestXML,
String relayStateURL,
String samlEncoding)
Parses the non null request parameters
for a SAML request into a SAML request
object.
|
SAMLAuthRequest parseAuthRequest(String samlRequestXML, String relayStateURL, String samlEncoding) throws SAMLException
samlRequestXML - request XML string, already URL-decoded, but still Base64 encoded and zippedrelayStateURL - relay state URL.samlEncoding - SAML encodingSAMLException - error parsing request.SAMLAuthResponse generateAuthResponse(SAMLAuthRequest authRequest, String authenticatedUser) throws SAMLException
authRequest - authentication request object.authenticatedUser - username of authenticated user.SAMLException - error generating or signing XML response.void generateKeys()
throws SAMLException
This will overwrite any existing keys.
SAMLException - if there was an error generating
or storing the new keys.void deleteKeys()
boolean hasValidKeys()
true if and only if a valid key-pair
exists.Copyright © 2024 Atlassian. All rights reserved.