Class BasicKeyInfoGeneratorFactory

  • All Implemented Interfaces:
    org.opensaml.xmlsec.keyinfo.KeyInfoGeneratorFactory
    Direct Known Subclasses:
    X509KeyInfoGeneratorFactory

    public class BasicKeyInfoGeneratorFactory
    extends Object
    implements org.opensaml.xmlsec.keyinfo.KeyInfoGeneratorFactory
    A factory implementation which produces instances of KeyInfoGenerator capable of handling the information contained within a Credential. All boolean options default to false.
    • Constructor Detail

      • BasicKeyInfoGeneratorFactory

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

      • getCredentialType

        @Nonnull
        public Class<? extends org.opensaml.security.credential.Credential> getCredentialType()
        Specified by:
        getCredentialType in interface org.opensaml.xmlsec.keyinfo.KeyInfoGeneratorFactory
      • handles

        public boolean handles​(@Nonnull
                               org.opensaml.security.credential.Credential credential)
        Specified by:
        handles in interface org.opensaml.xmlsec.keyinfo.KeyInfoGeneratorFactory
      • newInstance

        @Nonnull
        public org.opensaml.xmlsec.keyinfo.KeyInfoGenerator newInstance()
        Specified by:
        newInstance in interface org.opensaml.xmlsec.keyinfo.KeyInfoGeneratorFactory
      • 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