Class BasicKeyInfoGeneratorFactory

    • Constructor Detail

      • BasicKeyInfoGeneratorFactory

        public BasicKeyInfoGeneratorFactory()
        Constructor. All boolean options are initialzed as false;
    • Method Detail

      • getCredentialType

        @Nonnull
        public Class<? extends Credential> getCredentialType()
        Get the type (interface) of the specific type of credential handled by generators produced by this factory. Primarily used as an index by manager implementions such as KeyInfoGeneratorManager.
        Specified by:
        getCredentialType in interface KeyInfoGeneratorFactory
        Returns:
        the specifc type of credential handled by the generators produced by this factory
      • handles

        public boolean handles​(@Nonnull
                               Credential credential)
        Check whether the generators produced by this factory can handle the specified credential.
        Specified by:
        handles in interface KeyInfoGeneratorFactory
        Parameters:
        credential - the credential to evaluate
        Returns:
        true if the generators produced by this factory can handle the type of the specified credential, false otherwise
      • emitEntityIDAsKeyName

        public boolean emitEntityIDAsKeyName()
        Get the option to emit the entity ID value in a Credential as a KeyName element.
        Returns:
        return the option value
      • setEmitEntityIDAsKeyName

        public void setEmitEntityIDAsKeyName​(boolean newValue)
        Set the option to emit the entity ID value in a Credential as a KeyName element.
        Parameters:
        newValue - the new option value to set
      • emitKeyNames

        public boolean emitKeyNames()
        Get the option to emit key names found in a Credential as KeyName elements.
        Returns:
        the option value
      • setEmitKeyNames

        public void setEmitKeyNames​(boolean newValue)
        Set the option to emit key names found in a Credential as KeyName elements.
        Parameters:
        newValue - the new option value to set
      • emitPublicKeyValue

        public boolean emitPublicKeyValue()
        Get the option to emit the value of Credential.getPublicKey() as a KeyValue element.
        Returns:
        the option value
      • setEmitPublicKeyValue

        public void setEmitPublicKeyValue​(boolean newValue)
        Set the option to emit the value of Credential.getPublicKey() as a KeyValue element.
        Parameters:
        newValue - the new option value to set
      • emitPublicDEREncodedKeyValue

        public boolean emitPublicDEREncodedKeyValue()
        Get the option to emit the value of Credential.getPublicKey() as a DEREncodedKeyValue element.
        Returns:
        the option value
      • setEmitPublicDEREncodedKeyValue

        public void setEmitPublicDEREncodedKeyValue​(boolean newValue)
        Set the option to emit the value of Credential.getPublicKey() as a DEREncodedKeyValue element.
        Parameters:
        newValue - the new option value to set