|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.feide.moria.webservices.v2_1.AuthenticationImpl
public final class AuthenticationImpl
Field Summary | |
---|---|
private static java.lang.String |
AUTHN_EX_MSG
Log message for AuthenticationExceptions. |
private static java.lang.String |
AUTHZ_EX_MESSAGE
Log message for AuthorizationExceptions. |
private static java.lang.String |
DIR_UNAV_EX_MSG
Log message for DirectoryUnavailableExceptions. |
private static java.lang.String |
INOP_STATE_EX_MSG
Log message for InoperableStateExceptions. |
private no.feide.moria.log.MessageLogger |
messageLogger
Class wide logger. |
private static java.lang.String |
MORIACTRL_EX_MESSAGE
Log message for MoriaControllerExceptions. |
private static java.lang.String |
UNKNOWN_TICKET_EX_MSG
Log message for UnknownTicketExceptions. |
Constructor Summary | |
---|---|
AuthenticationImpl()
Default constructor. |
Method Summary | |
---|---|
Attribute[] |
directNonInteractiveAuthentication(java.lang.String[] attributes,
java.lang.String username,
java.lang.String password)
Performs direct non-interactive authentication. |
java.lang.String |
getProxyTicket(java.lang.String ticketGrantingTicket,
java.lang.String proxyServicePrincipal)
Gets a proxy ticket. |
Attribute[] |
getUserAttributes(java.lang.String serviceTicket)
Gets user attributes. |
java.lang.String |
initiateAuthentication(java.lang.String[] attributes,
java.lang.String returnURLPrefix,
java.lang.String returnURLPostfix,
boolean forceInteractiveAuthentication)
Initiates authentication. |
private Attribute[] |
mapToAttributeArray(java.util.Map map,
java.lang.String activeTicketId)
Utility method to convert a Map to an array of
Attribute s. |
Attribute[] |
proxyAuthentication(java.lang.String[] attributes,
java.lang.String proxyTicket)
Performs proxy authentication. |
boolean |
verifyUserExistence(java.lang.String username)
Verifies the existence of a given user in the underlying directories. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private no.feide.moria.log.MessageLogger messageLogger
private static final java.lang.String AUTHZ_EX_MESSAGE
private static final java.lang.String AUTHN_EX_MSG
private static final java.lang.String DIR_UNAV_EX_MSG
private static final java.lang.String MORIACTRL_EX_MESSAGE
private static final java.lang.String INOP_STATE_EX_MSG
private static final java.lang.String UNKNOWN_TICKET_EX_MSG
Constructor Detail |
---|
public AuthenticationImpl()
Method Detail |
---|
public java.lang.String initiateAuthentication(java.lang.String[] attributes, java.lang.String returnURLPrefix, java.lang.String returnURLPostfix, boolean forceInteractiveAuthentication) throws SOAPException
Authentication
initiateAuthentication
in interface Authentication
attributes
- The attributes the service wants returned on loginreturnURLPrefix
- The prefix of the url the user is to be returned toreturnURLPostfix
- The optional postfix of the return urlforceInteractiveAuthentication
- Whether or not cookie based authentication (SSO Light)
should be allowed.
SOAPException
- If anything fails during the call.Authentication.initiateAuthentication(java.lang.String[],
java.lang.String, java.lang.String, boolean)
public Attribute[] directNonInteractiveAuthentication(java.lang.String[] attributes, java.lang.String username, java.lang.String password) throws SOAPException
Authentication
directNonInteractiveAuthentication
in interface Authentication
attributes
- The attributes the service wants returned on login.username
- The user name of the user to be authenticated.password
- The password of the user to be authenticated.
SOAPException
- If anything fails during the call.Authentication.directNonInteractiveAuthentication(java.lang.String[],
java.lang.String, java.lang.String)
public Attribute[] proxyAuthentication(java.lang.String[] attributes, java.lang.String proxyTicket) throws SOAPException
Authentication
proxyAuthentication
in interface Authentication
attributes
- The attributes the service wants returned on login.proxyTicket
- The proxy ticket given to the calling system by its initiator.
SOAPException
- If anything fails during the call.Authentication.proxyAuthentication(java.lang.String[],
java.lang.String)
public java.lang.String getProxyTicket(java.lang.String ticketGrantingTicket, java.lang.String proxyServicePrincipal) throws SOAPException
Authentication
getProxyTicket
in interface Authentication
ticketGrantingTicket
- A TGT that has been issued previously.proxyServicePrincipal
- The service which the proxy ticket should be issued for.
SOAPException
- If anything fails during the call.Authentication.getProxyTicket(java.lang.String,
java.lang.String)
public Attribute[] getUserAttributes(java.lang.String serviceTicket) throws AuthorizationFailedException, IllegalInputException, InternalException, UnknownTicketException
Authentication
getUserAttributes
in interface Authentication
serviceTicket
- The ticket included in the return request issued by the client.
AuthorizationFailedException
IllegalInputException
InternalException
UnknownTicketException
Authentication.getUserAttributes(java.lang.String)
public boolean verifyUserExistence(java.lang.String username) throws SOAPException
Authentication
verifyUserExistence
in interface Authentication
username
- The username to be validated.
SOAPException
- If anything fails during the call.Authentication.verifyUserExistence(java.lang.String)
private Attribute[] mapToAttributeArray(java.util.Map map, java.lang.String activeTicketId)
Map
to an array of
Attribute
s.
map
- The Map
to be converted.activeTicketId
- Optional variable for logging purposes.
Attribute
objects.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |