|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.security.FederatedLoginService.FederatedIdentity
public abstract class FederatedLoginService.FederatedIdentity
Identity information as obtained from FederatedLoginService
.
Constructor Summary | |
---|---|
FederatedLoginService.FederatedIdentity()
|
Method Summary | |
---|---|
void |
addTo(User u)
Adds this identity to the specified user. |
void |
addToCurrentUser()
Your implementation will call this method to add this identifier to the current user of an already authenticated session. |
abstract String |
getEmailAddress()
Gets the e-mail address of this user, like "[email protected]" |
abstract String |
getFullName()
Gets a human readable full name of this user. |
abstract String |
getIdentifier()
Gets the string representation of the identity in the form that makes sense to the enclosing FederatedLoginService , such as full OpenID URL. |
abstract String |
getNickname()
Gets a short ID of this user, as a suitable candidate for User.getId() . |
abstract String |
getPronoun()
Returns a human-readable pronoun that describes this kind of identifier. |
User |
locateUser()
Locates the user who owns this identifier. |
User |
signin()
Call this method to authenticate the user when you confirmed (via your protocol specific work) that the current HTTP request indeed owns this identifier. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FederatedLoginService.FederatedIdentity()
Method Detail |
---|
public abstract String getIdentifier()
FederatedLoginService
, such as full OpenID URL.
public abstract String getNickname()
User.getId()
.
This should be Unix username like token.
public abstract String getFullName()
User.getDisplayName()
public abstract String getEmailAddress()
public abstract String getPronoun()
public final User locateUser()
public User signin() throws FederatedLoginService.UnclaimedIdentityException
This method will locate the user who owns this identifier, associate the credential with the current session. IOW, it signs in the user.
FederatedLoginService.UnclaimedIdentityException
- If this identifier is not claimed by anyone. If you just let this exception propagate
to the caller of your "doXyz" method, it will either render an error page or initiate
a user registration session (provided that SecurityRealm
supports that.)public void addToCurrentUser() throws IOException
This method will record the identifier in FederatedLoginServiceUserProperty
so that
in the future the user can login to Hudson with the identifier.
IOException
public void addTo(User u) throws IOException
IOException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |