Package google.registry.flows
Class HttpSessionMetadata
java.lang.Object
google.registry.flows.HttpSessionMetadata
- All Implemented Interfaces:
SessionMetadata
A metadata class that is a wrapper around
HttpSession
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
void
Invalidates the session.void
void
setRegistrarId
(String registrarId) void
setServiceExtensionUris
(Set<String> serviceExtensionUris) toString()
-
Constructor Details
-
HttpSessionMetadata
public HttpSessionMetadata(jakarta.servlet.http.HttpSession session)
-
-
Method Details
-
invalidate
public void invalidate()Description copied from interface:SessionMetadata
Invalidates the session. A new instance must be created after this for future sessions. Attempts to invoke methods of this class after this method has been called will throwIllegalStateException
.- Specified by:
invalidate
in interfaceSessionMetadata
-
getRegistrarId
- Specified by:
getRegistrarId
in interfaceSessionMetadata
-
getServiceExtensionUris
- Specified by:
getServiceExtensionUris
in interfaceSessionMetadata
-
getFailedLoginAttempts
public int getFailedLoginAttempts()- Specified by:
getFailedLoginAttempts
in interfaceSessionMetadata
-
setRegistrarId
- Specified by:
setRegistrarId
in interfaceSessionMetadata
-
setServiceExtensionUris
- Specified by:
setServiceExtensionUris
in interfaceSessionMetadata
-
incrementFailedLoginAttempts
public void incrementFailedLoginAttempts()- Specified by:
incrementFailedLoginAttempts
in interfaceSessionMetadata
-
resetFailedLoginAttempts
public void resetFailedLoginAttempts()- Specified by:
resetFailedLoginAttempts
in interfaceSessionMetadata
-
toString
-