Class AbstractKeyInfoProvider

    • Constructor Detail

      • AbstractKeyInfoProvider

        public AbstractKeyInfoProvider()
    • Method Detail

      • extractKeyValue

        @Nullable
        protected Key extractKeyValue​(@Nullable
                                      Credential cred)
        Utility method to extract any key that might be present in the specified Credential.
        Parameters:
        cred - the Credential to evaluate
        Returns:
        the Key contained in the credential, or null if it does not contain a key.
      • buildCredentialContext

        @Nullable
        protected KeyInfoCredentialContext buildCredentialContext​(@Nullable
                                                                  KeyInfoResolutionContext kiContext)
        Build a credential context based on the current KeyInfo context, for return in a resolved credential.
        Parameters:
        kiContext - the current KeyInfo resolution context
        Returns:
        a new KeyInfo credential context