|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openliberty.wsc.BaseServiceClient
org.openliberty.wsc.AuthenticationService
public class AuthenticationService
This class bootstraps into the WSF environment authenticating with an Authentication Service (AS)
to retrieve a Discovery Service (DS) EndpointReference, utilizing SASL.
| Nested Class Summary | |
|---|---|
static class |
AuthenticationService.AuthMechanism
This enumeration lists the AUTH mechanisms currently supported by the client library |
static class |
AuthenticationService.ResponseCode
This enum models the ResponseCodes that are supported by the WSC ClientLib Authentication Service Client at this point. |
static class |
AuthenticationService.WSCExceptionType
An enumeration that describes the various exceptions that the Authentication Service Client may throw. |
| Field Summary | |
|---|---|
private java.lang.String |
lastMessageId
Used for the RelatesTo header when there is a CONTINUE |
private AuthenticationService.ResponseCode |
lastResponseCode
|
private static org.apache.log4j.Logger |
log
|
(package private) boolean |
promiscuousMode
Indicates whether the service client will attempt to down grade in the event that the server returns an AUTH MECHANISM that was not requested |
private java.net.URL |
serviceURL
|
| Constructor Summary | |
|---|---|
AuthenticationService(DiscoveryService discoveryService,
EndpointReference initialEndpointReference)
|
|
| Method Summary | |
|---|---|
EndpointReference |
authenticate(java.lang.String username,
java.lang.String password,
AuthenticationService.AuthMechanism mechanism)
This wraps method calls |
EndpointReference |
authenticate(java.lang.String username,
java.lang.String password,
AuthenticationService.AuthMechanism mechanism,
org.opensaml.saml2.core.RequestedAuthnContext requestedAuthnContext)
|
EndpointReference |
authenticateCRAM_MD5(java.lang.String username,
java.lang.String password,
org.opensaml.saml2.core.RequestedAuthnContext requestedAuthnContext)
CRAM-MD5 is a two stage authentication procedure. |
EndpointReference |
authenticatePLAIN(java.lang.String username,
java.lang.String password,
org.opensaml.saml2.core.RequestedAuthnContext requestedAuthnContext)
authenticate Perform the (multi-step) authentication |
boolean |
checkForSupportOfAuthMechanism(AuthenticationService.AuthMechanism mechanism)
This convenience method checks to see whether the server supports a specified AUTH MECHANISM |
AuthenticationService.ResponseCode |
getLastResponseCode()
Returns the last response code logged by this client |
private SASLResponse |
invokeSASLRequest(java.net.URL addressURL,
SASLRequest request)
Invokes a SASLRequest, returning the SASLResponse |
boolean |
isPromiscuousMode()
|
static AuthenticationService |
serviceForEndpointReference(DiscoveryService discoveryService,
EndpointReference epr)
Creates an Authentication Service Client from the specified EndpointReference |
void |
setPromiscuousMode(boolean promiscuousMode)
|
void |
setServiceURL(java.net.URL serviceURL)
Sets the Authentication Service URL |
| Methods inherited from class org.openliberty.wsc.BaseServiceClient |
|---|
getDiscoveryService, getServiceEndpointReference, getServiceEndpointReferenceStore, isSigningOutgoingMessages, replaceServiceEndpointReference, serviceExplicitlySupportsOption, setDiscoveryService, setServiceEndpointReference, setSigningOutgoingMessages |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.apache.log4j.Logger log
boolean promiscuousMode
private java.net.URL serviceURL
private AuthenticationService.ResponseCode lastResponseCode
private java.lang.String lastMessageId
| Constructor Detail |
|---|
public AuthenticationService(DiscoveryService discoveryService,
EndpointReference initialEndpointReference)
| Method Detail |
|---|
public static AuthenticationService serviceForEndpointReference(DiscoveryService discoveryService,
EndpointReference epr)
epr -
public void setServiceURL(java.net.URL serviceURL)
serviceURL - public AuthenticationService.ResponseCode getLastResponseCode()
public boolean isPromiscuousMode()
public void setPromiscuousMode(boolean promiscuousMode)
public boolean checkForSupportOfAuthMechanism(AuthenticationService.AuthMechanism mechanism)
mechanism -
public EndpointReference authenticate(java.lang.String username,
java.lang.String password,
AuthenticationService.AuthMechanism mechanism)
throws WSCException
username - password - mechanism -
WSCException
public EndpointReference authenticate(java.lang.String username,
java.lang.String password,
AuthenticationService.AuthMechanism mechanism,
org.opensaml.saml2.core.RequestedAuthnContext requestedAuthnContext)
throws WSCException
username - password - mechanism - requestedAuthnContext -
WSCException
public EndpointReference authenticatePLAIN(java.lang.String username,
java.lang.String password,
org.opensaml.saml2.core.RequestedAuthnContext requestedAuthnContext)
throws WSCException
WSCException
public EndpointReference authenticateCRAM_MD5(java.lang.String username,
java.lang.String password,
org.opensaml.saml2.core.RequestedAuthnContext requestedAuthnContext)
throws WSCException
http://www.ietf.org/internet-drafts/draft-ietf-sasl-crammd5-09.txt
username - password -
WSCException
private SASLResponse invokeSASLRequest(java.net.URL addressURL,
SASLRequest request)
throws WSCException
addressUrl - request -
WSCException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||