Class UserMultiID
- java.lang.Object
-
- org.cilogon.oauth2.servlet.storage.user.UserMultiID
-
- All Implemented Interfaces:
Serializable
,Iterable<PersonName>
public class UserMultiID extends Object implements Iterable<PersonName>, Serializable
Once upon a time, the remote user and idp were sufficient to completely determine a user. This key now takes the place of that at every turn. Any place that remote user would be used, this class should be substituted.Created by Jeff Gaynor
on 5/6/14 at 9:32 AM- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserMultiID(EduPersonPrincipleName eppn)
UserMultiID(EduPersonPrincipleName eppn, EduPersonTargetedID eptid)
UserMultiID(EduPersonPrincipleName eppn, EduPersonTargetedID eptid, PairwiseID pairwiseID, SubjectID subjectID)
UserMultiID(EduPersonTargetedID eptid)
UserMultiID(OpenID openID)
UserMultiID(OpenIDConnect openIDConnect)
UserMultiID(OpenID openID, OpenIDConnect openIDConnect)
UserMultiID(RemoteUserName remoteUserName)
UserMultiID(RemoteUserName remoteUserName, EduPersonPrincipleName eppn, EduPersonTargetedID eptid, OpenID openID, OpenIDConnect openIDConnect)
UserMultiID(RemoteUserName remoteUserName, EduPersonPrincipleName eppn, EduPersonTargetedID eptid, OpenID openID, OpenIDConnect openIDConnect, PairwiseID pairwiseID, SubjectID subjectID)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
UserMultiID
public UserMultiID(RemoteUserName remoteUserName)
-
UserMultiID
public UserMultiID(EduPersonPrincipleName eppn)
-
UserMultiID
public UserMultiID(EduPersonTargetedID eptid)
-
UserMultiID
public UserMultiID(OpenID openID)
-
UserMultiID
public UserMultiID(OpenID openID, OpenIDConnect openIDConnect)
-
UserMultiID
public UserMultiID(OpenIDConnect openIDConnect)
-
UserMultiID
public UserMultiID(EduPersonPrincipleName eppn, EduPersonTargetedID eptid)
-
UserMultiID
public UserMultiID(EduPersonPrincipleName eppn, EduPersonTargetedID eptid, PairwiseID pairwiseID, SubjectID subjectID)
-
UserMultiID
public UserMultiID(RemoteUserName remoteUserName, EduPersonPrincipleName eppn, EduPersonTargetedID eptid, OpenID openID, OpenIDConnect openIDConnect, PairwiseID pairwiseID, SubjectID subjectID)
-
UserMultiID
public UserMultiID(RemoteUserName remoteUserName, EduPersonPrincipleName eppn, EduPersonTargetedID eptid, OpenID openID, OpenIDConnect openIDConnect)
-
-
Method Detail
-
hasSubjectID
public boolean hasSubjectID()
-
hasPairwiseID
public boolean hasPairwiseID()
-
getSubjectID
public SubjectID getSubjectID()
-
setSubjectID
public void setSubjectID(SubjectID subjectID)
-
getPairwiseID
public PairwiseID getPairwiseID()
-
setPairwiseID
public void setPairwiseID(PairwiseID persistentID)
-
getOpenIDConnect
public OpenIDConnect getOpenIDConnect()
-
setOpenIDConnect
public void setOpenIDConnect(OpenIDConnect openIDConnect)
-
isTrivial
public boolean isTrivial()
Returns if this has only null or empty elements.- Returns:
-
setEppn
public void setEppn(EduPersonPrincipleName eppn)
-
setEptid
public void setEptid(EduPersonTargetedID eptid)
-
setOpenID
public void setOpenID(OpenID openID)
-
setRemoteUserName
public void setRemoteUserName(RemoteUserName remoteUserName)
-
getEppn
public EduPersonPrincipleName getEppn()
-
getEptid
public EduPersonTargetedID getEptid()
-
getOpenID
public OpenID getOpenID()
-
getRemoteUserName
public RemoteUserName getRemoteUserName()
-
iterator
public Iterator<PersonName> iterator()
- Specified by:
iterator
in interfaceIterable<PersonName>
-
checkEquals
protected boolean checkEquals(PersonName p1, PersonName p2)
-
keepSerialString
public boolean keepSerialString(UserMultiID newID)
-
union
public UserMultiID union(UserMultiID newid)
Centralizing checking if a newid should update this. This can be a rat's nest since we may effectively get multiple user names with different calls.- Parameters:
newid
-- Returns:
-
hasEPPN
public boolean hasEPPN()
-
hasEPTID
public boolean hasEPTID()
-
hasOpenID
public boolean hasOpenID()
-
hasRemoteUser
public boolean hasRemoteUser()
-
hasOpenIDConnect
public boolean hasOpenIDConnect()
-
hasPN
protected boolean hasPN(PersonName pn)
-
-