X-Git-Url: https://repo.niif.hu/gitweb/gitweb.cgi?p=java-idp.git;a=blobdiff_plain;f=src%2Fedu%2Finternet2%2Fmiddleware%2Fshibboleth%2Fidp%2Fsession%2FSession.java;h=4613187d15dc3644189edfa7511074464a0d91ea;hp=8a55aba407aa982e92e3136461a66ed7eff8a6e6;hb=92fabdf36fb525fc110f7f8f565ebab007ae9ac0;hpb=beeb6427ef2d3586fb326ea3a3d260814a69f56d diff --git a/src/edu/internet2/middleware/shibboleth/idp/session/Session.java b/src/edu/internet2/middleware/shibboleth/idp/session/Session.java index 8a55aba..4613187 100644 --- a/src/edu/internet2/middleware/shibboleth/idp/session/Session.java +++ b/src/edu/internet2/middleware/shibboleth/idp/session/Session.java @@ -21,7 +21,10 @@ import java.util.List; /** * Session information for user logged into the IdP. */ -public interface Session extends edu.internet2.middleware.shibboleth.common.session.Session{ +public interface Session extends edu.internet2.middleware.shibboleth.common.session.Session { + + /** Name of the HttpSession attribute a users Shibboleth session Id is bound to. */ + public static final String HTTP_SESSION_BINDING_ATTRIBUTE = "ShibbolethSessionId"; /** * Gets the methods by which the user has authenticated to the IdP. @@ -31,6 +34,15 @@ public interface Session extends edu.internet2.middleware.shibboleth.common.sess public List getAuthenticationMethods(); /** + * Gets the information for a service a user is logged into. + * + * @param entityId ID of the service + * + * @return information for a service a user is logged into or null if the user is not logged into the given service + */ + public ServiceInformation getServiceInformation(String entityId); + + /** * Gets the services the user has logged in to. * * @return services the user has logged in to