public class CAEAuthServiceImpl extends Object implements CAEAuthService
Constructor and Description |
---|
CAEAuthServiceImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getSAMLTokenFromShib(String base64String)
Take a base64 + urlEncoded Shibboleth Assertion and use it as the authenticated basis
to issue a CAE SAML Assertion.
|
String |
getSAMLTokenFromUsernamePassword(String username,
String password,
String requestIP)
Generate a token that represents a SAML
Assertion
for use in other CAE Web Services for Authentication. |
CAESamlInfo |
getVerificationInfo(String guid)
This will return a
CAESamlInfo about an issued CAE SAML Assertion |
RevokeResponse |
revokeSAMLToken(String guid)
Revoke a SAML
Assertion |
void |
setAllowedClockSkew(int seconds) |
void |
setCaeapiKeyDao(CaeapiKeyDao caeapiDao) |
void |
setCaeapiUserInfoDao(CaeapiUserInfoDao caeapiDao) |
void |
setIdpPublicCertificateFile(String certFile) |
void |
setKeystoreAlias(String keystoreAlias) |
void |
setKeystoreFilename(String keystoreFilename) |
void |
setKeystorePassword(String keystorePassword) |
public void setKeystorePassword(String keystorePassword)
public void setKeystoreFilename(String keystoreFilename)
public void setKeystoreAlias(String keystoreAlias)
public void setIdpPublicCertificateFile(String certFile)
public void setAllowedClockSkew(int seconds)
@Autowired public void setCaeapiKeyDao(CaeapiKeyDao caeapiDao)
@Autowired public void setCaeapiUserInfoDao(CaeapiUserInfoDao caeapiDao)
public String getSAMLTokenFromShib(String base64String) throws SoapSAMLException
getSAMLTokenFromShib
in interface CAEAuthService
base64String
- SoapSAMLException
public String getSAMLTokenFromUsernamePassword(String username, String password, String requestIP) throws SoapSAMLException
CAEAuthService
Assertion
for use in other CAE Web Services for Authentication.
This method will take a username/password pair for authentication. The username/password must match a username/password pair in the CAE Authentication system.
If successful, the return is a string of the CAE SAML Assertion that has also been URL Encoded and then base64 encoded. Before it can be used as a WS-Security token, it will need to be base64 decoded, and then URL Decoded. Do not modify this decoded string in any way or the signed signature of the assertion will not validate.
getSAMLTokenFromUsernamePassword
in interface CAEAuthService
username
- - the CAE Login name to authenticate withpassword
- - the password for the CAE Account specifiedrequestIP
- - This is filled in by the web service call, the IP Address of
the calling client. It is not part of the endpoint requestSoapSAMLException
public RevokeResponse revokeSAMLToken(String guid) throws SoapSAMLException
CAEAuthService
Assertion
The GUID needed is the value from
Upon success, the assertion specified will be marked as revoked. Any call to the
getVerificationInfo
will return that it is no longer a valid assertion.
revokeSAMLToken
in interface CAEAuthService
SoapSAMLException
public CAESamlInfo getVerificationInfo(String guid) throws SoapSAMLException
CAEAuthService
CAESamlInfo
about an issued CAE SAML Assertion
The GUID needed is the value from
getVerificationInfo
in interface CAEAuthService
guid
- - The token to get the information aboutSoapSAMLException
Copyright © 2012 Computer-Aided Engineering, University of Wisconsin-Madison. All Rights Reserved.