Class PublicKeySignWrapper

  • All Implemented Interfaces:
    PrimitiveWrapper<PublicKeySign,​PublicKeySign>

    public class PublicKeySignWrapper
    extends java.lang.Object
    implements PrimitiveWrapper<PublicKeySign,​PublicKeySign>
    The implementation of PrimitiveWrapper<PublicKeySign>.

    The returned primitive works with a keyset (rather than a single key). To sign a message, it uses the primary key in the keyset, and prepends to the signature a certain prefix associated with the primary key.

    • Method Detail

      • register

        public static void register()
                             throws java.security.GeneralSecurityException
        Register the wrapper within the registry.

        This is required for calls to Keyset.getPrimitive with a PublicKeySign argument.

        Throws:
        java.security.GeneralSecurityException
      • registerToInternalPrimitiveRegistry

        public static void registerToInternalPrimitiveRegistry​(PrimitiveRegistry.Builder primitiveRegistryBuilder)
                                                        throws java.security.GeneralSecurityException
        registerToInternalPrimitiveRegistry is a non-public method (it takes an argument of an internal-only type) registering an instance of PublicKeySignWrapper to the provided PrimitiveRegistry#Builder.
        Throws:
        java.security.GeneralSecurityException