|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.gv.egiz.moodle.eidconnector.auth.data.SubjectAttributesStore
public final class SubjectAttributesStore
Class that provides a store for SubjectAttributes
resulting from successful
authentication. Putting SubjectAttributes in the store returns a ticket. For retrieval of the
stored attributes this ticket has to be provided. After retrieval the attributes are removed from
store invalidating the ticket.
Method Summary | |
---|---|
void |
cleanUp()
Invokes a cleanup method which removed tickets older than keepTicketForSeconds
seconds. |
static SubjectAttributesStore |
getInstance()
|
SubjectAttributes |
getSubjectAttributes(String ticket)
|
String |
storeSubjectAttributes(String sourceID,
SubjectAttributes attributes)
Stores the SubjectAttributes from a successful authentication and returns a ticket. |
String |
storeSubjectAttributes(SubjectAttributes attributes)
Stores the SubjectAttributes from a successful authentication and returns a ticket. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SubjectAttributesStore getInstance()
public SubjectAttributes getSubjectAttributes(String ticket)
public String storeSubjectAttributes(SubjectAttributes attributes) throws NoSuchAlgorithmException
SubjectAttributes
from a successful authentication and returns a ticket.
attributes
- The SubjectAttributes.
NoSuchAlgorithmException
- Thrown if the underlying crypto/hash algorithms are
not available.public String storeSubjectAttributes(String sourceID, SubjectAttributes attributes) throws NoSuchAlgorithmException
SubjectAttributes
from a successful authentication and returns a ticket.
sourceID
- The sourceID.attributes
- The SubjectAttributes.
NoSuchAlgorithmException
- Thrown if the underlying crypto/hash algorithms (SHA-1) are
not available.public void cleanUp()
keepTicketForSeconds
seconds. Note that keepTicketForSeconds
<= 0
disables cleanup.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |