Package google.registry.flows
Class StatelessRequestSessionMetadata
java.lang.Object
google.registry.flows.StatelessRequestSessionMetadata
- All Implemented Interfaces:
SessionMetadata
A read-only
SessionMetadata
that doesn't support login/logout.-
Constructor Summary
ConstructorDescriptionStatelessRequestSessionMetadata
(String registrarId, com.google.common.collect.ImmutableSet<String> serviceExtensionUris) -
Method Summary
Modifier and TypeMethodDescriptionint
void
void
Invalidates the session.void
void
setRegistrarId
(String registrarId) void
setServiceExtensionUris
(Set<String> serviceExtensionUris) toString()
-
Constructor Details
-
StatelessRequestSessionMetadata
-
-
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
-