Class KeyInfoCredentialResolutionMode
- java.lang.Object
-
- org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolutionMode
-
- All Implemented Interfaces:
Criterion
public final class KeyInfoCredentialResolutionMode extends Object implements Criterion
An implementation ofCriterionwhich specifies criteria to aKeyInfoCredentialResolverabout whether to resolve public credentials, local credentials, or both.A local credential is defined as one carrying either a
PrivateKeyor aSecretKey.This criterion is used with resolver implementations which are capable of local credential resolution using the (usually public) information available directly within
KeyInfo.If
PUBLICthen resolver implementations may skip local resolution and return any credentials extracted directly fromKeyInfo. 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, anAgreementMethodmight produce a credential containing aSecretKey, and this would be returned in this mode.If
LOCALthen resolver implementations which are capable of resolving local credentials should attempt that local credential resolution, and only those local credentials should be returned.If
BOTHthen local credential resolution should be attempted as inLOCAL. 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 Summary
Nested Classes Modifier and Type Class Description static classKeyInfoCredentialResolutionMode.ModeCredential resolution mode.
-
Field Summary
Fields Modifier and Type Field Description private KeyInfoCredentialResolutionMode.ModemodeResolution mode.
-
Constructor Summary
Constructors Constructor Description KeyInfoCredentialResolutionMode(KeyInfoCredentialResolutionMode.Mode resolutionMode)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)KeyInfoCredentialResolutionMode.ModegetMode()Gets the resolution mode.inthashCode()StringtoString()
-
-
-
Field Detail
-
mode
private KeyInfoCredentialResolutionMode.Mode mode
Resolution mode.
-
-
Constructor Detail
-
KeyInfoCredentialResolutionMode
public KeyInfoCredentialResolutionMode(@Nonnull KeyInfoCredentialResolutionMode.Mode resolutionMode)Constructor.- Parameters:
resolutionMode- the resolution mode
-
-
Method Detail
-
getMode
@Nullable public KeyInfoCredentialResolutionMode.Mode getMode()
Gets the resolution mode.- Returns:
- the resolution mode
-
-