public enum WebCertificateRequestHandlerHolder extends java.lang.Enum<WebCertificateRequestHandlerHolder>
SAML2WebStrategy
to store instances of WebCertificateRequestHandlerHolder
temporarily. This
is required as most implementations start activities with intents. As a holder cannot be serialized, there must be an interim storage that
holds them 'till the targeted activities pick them up. Check out the method documentations of this class for the details as to how it works.
This class is thread-safe.
Enum Constant and Description |
---|
inst |
Modifier and Type | Method and Description |
---|---|
WebCertificateRequestHandler |
pullHandler(int id)
Pulls the handler out of the interim storage.
|
int |
storeHandler(WebCertificateRequestHandler certificateRequestHandler)
Stores the specifed handler and assigns it a unique identifier.
|
static WebCertificateRequestHandlerHolder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WebCertificateRequestHandlerHolder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebCertificateRequestHandlerHolder inst
public static WebCertificateRequestHandlerHolder[] values()
for (WebCertificateRequestHandlerHolder c : WebCertificateRequestHandlerHolder.values()) System.out.println(c);
public static WebCertificateRequestHandlerHolder valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int storeHandler(WebCertificateRequestHandler certificateRequestHandler)
Callers can rely on that this method will never produce the same identifier twice.
certificateRequestHandler
- the handler to store, must be non-nullpublic WebCertificateRequestHandler pullHandler(int id)
storeHandler(WebCertificateRequestHandler)
beforehand.
After having pulled the object, it is no longer part of the interim storage.
id
- the unique identifier of the handler