- All Implemented Interfaces:
Criterionwhich specifies criteria to a
KeyInfoCredentialResolverabout whether to resolve public credentials, local credentials, or both.
This criterion is used with resolver implementations which are
capable of local credential resolution using the (usually public) information available
PUBLIC then resolver implementations may skip
local resolution and return any credentials extracted directly from
KeyInfo. This mode does not mean that a local credential will
absolutely not be returned, merely that the resolver is not obligated to
do so. For example, an
AgreementMethod might produce a credential
SecretKey, and this would be returned in this mode.
LOCAL then resolver implementations which are capable
of resolving local credentials should attempt that local credential resolution,
and only those local credentials should be returned.
BOTH then local credential resolution should be attempted
LOCAL. If a local credential based on a given public credential's info is
resolved it will be returned, otherwise the public credential itself will be returned.
Nested Class SummaryModifier and TypeClassDescription
static enumCredential resolution mode.
modeprivate KeyInfoCredentialResolutionMode.Mode modeResolution mode.
(@Nonnull KeyInfoCredentialResolutionMode.Mode resolutionMode)Constructor.
resolutionMode- the resolution mode
getMode@Nullable public KeyInfoCredentialResolutionMode.Mode getMode()Gets the resolution mode.
- the resolution mode
toStringpublic String toString()
hashCodepublic int hashCode()
equalspublic boolean equals