com.ibm.uddi.v3.client.apilayer.xmldsig

Class SignatureUtilities

  • java.lang.Object
    • com.ibm.uddi.v3.client.apilayer.xmldsig.SignatureUtilities


  • public class SignatureUtilities
    extends java.lang.Object
    A Thread safe helper class to produce and validate Digital Signatures for the UDDI V3 entity types that support them.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static void setFIPSSecurityProvider(boolean fips)
      Sets the type of security provider, FIPS or non FIPS.
      static void sign(org.uddi.v3.schema.api.BindingTemplate[] bindingTemplate, java.security.cert.X509Certificate certificate, java.security.Key privateKey)
      Produces a populated Signature element with a valid digital signature for each supplied BindingTemplate.
      static void sign(org.uddi.v3.schema.api.BusinessEntity[] business, java.security.cert.X509Certificate certificate, java.security.Key privateKey)
      Produces a populated Signature element with a valid digital signature for each supplied BusinessEntity.
      static void sign(org.uddi.v3.schema.api.BusinessService[] service, java.security.cert.X509Certificate certificate, java.security.Key privateKey)
      Produces a populated Signature element with a valid digital signature for each supplied BusinessService.
      static void sign(org.uddi.v3.schema.api.PublisherAssertion[] assertion, java.security.cert.X509Certificate certificate, java.security.Key privateKey)
      Produces a populated Signature element with a valid digital signature for each supplied PublisherAssertion.
      static void sign(org.uddi.v3.schema.api.TModel[] tmodel, java.security.cert.X509Certificate certificate, java.security.Key privateKey)
      Produces a populated Signature element with a valid digital signature for each supplied TModel.
      static Validity[] verify(org.uddi.v3.schema.api.BindingTemplate[] bindingTemplate)
      Verifies that the supplied binding templates have valid digital signatures.
      static Validity[] verify(org.uddi.v3.schema.api.BindingTemplate[] bindingTemplate, java.security.Key publicKey)
      Verifies, using the supplied public key, that the supplied binding templates have valid digital signatures.
      static Validity[] verify(org.uddi.v3.schema.api.BusinessEntity[] business)
      Verifies that the supplied business entities have valid digital signatures.
      static Validity[] verify(org.uddi.v3.schema.api.BusinessEntity[] business, java.security.Key publicKey)
      Verifies, using the supplied public key, that the supplied business entities have valid digital signatures.
      static Validity[] verify(org.uddi.v3.schema.api.BusinessService[] service)
      Verifies that the supplied business services have valid digital signatures.
      static Validity[] verify(org.uddi.v3.schema.api.BusinessService[] service, java.security.Key publicKey)
      Verifies, using the supplied public key, that the supplied business services have valid digital signatures.
      static Validity[] verify(org.uddi.v3.schema.api.PublisherAssertion[] assertion)
      Verifies that the supplied publisher assertions have valid digital signatures.
      static Validity[] verify(org.uddi.v3.schema.api.PublisherAssertion[] assertion, java.security.Key publicKey)
      Verifies, using the supplied public key, that the supplied publisher assertions have valid digital signatures.
      static Validity[] verify(org.uddi.v3.schema.api.TModel[] tmodel)
      Verifies that the supplied TModels have valid digital signatures.
      static Validity[] verify(org.uddi.v3.schema.api.TModel[] tmodel, java.security.Key publicKey)
      Verifies, using the supplied public key, that the supplied TModels have valid digital signatures.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SignatureUtilities

        public SignatureUtilities()
    • Method Detail

      • setFIPSSecurityProvider

        public static void setFIPSSecurityProvider(boolean fips)
        Sets the type of security provider, FIPS or non FIPS.
        Parameters:
        fips - - boolean true or false
      • sign

        public static void sign(org.uddi.v3.schema.api.BindingTemplate[] bindingTemplate,
                java.security.cert.X509Certificate certificate,
                java.security.Key privateKey)
                         throws SignatureUtilitiesException
        Produces a populated Signature element with a valid digital signature for each supplied BindingTemplate.
        Parameters:
        bindingTemplate -
        certificate -
        privateKey -
        Throws:
        SignatureUtilitiesException
      • verify

        public static Validity[] verify(org.uddi.v3.schema.api.BindingTemplate[] bindingTemplate,
                        java.security.Key publicKey)
                                 throws SignatureUtilitiesException
        Verifies, using the supplied public key, that the supplied binding templates have valid digital signatures.
        Parameters:
        bindingTemplate -
        publicKey -
        Returns:
        Throws:
        SignatureUtilitiesException
      • sign

        public static void sign(org.uddi.v3.schema.api.BusinessEntity[] business,
                java.security.cert.X509Certificate certificate,
                java.security.Key privateKey)
                         throws SignatureUtilitiesException
        Produces a populated Signature element with a valid digital signature for each supplied BusinessEntity.
        Parameters:
        business -
        certificate -
        privateKey -
        Throws:
        SignatureUtilitiesException
      • verify

        public static Validity[] verify(org.uddi.v3.schema.api.BusinessEntity[] business,
                        java.security.Key publicKey)
                                 throws SignatureUtilitiesException
        Verifies, using the supplied public key, that the supplied business entities have valid digital signatures.
        Parameters:
        business -
        publicKey -
        Returns:
        Throws:
        SignatureUtilitiesException
      • sign

        public static void sign(org.uddi.v3.schema.api.BusinessService[] service,
                java.security.cert.X509Certificate certificate,
                java.security.Key privateKey)
                         throws SignatureUtilitiesException
        Produces a populated Signature element with a valid digital signature for each supplied BusinessService.
        Parameters:
        service -
        certificate -
        privateKey -
        Throws:
        SignatureUtilitiesException
      • verify

        public static Validity[] verify(org.uddi.v3.schema.api.BusinessService[] service,
                        java.security.Key publicKey)
                                 throws SignatureUtilitiesException
        Verifies, using the supplied public key, that the supplied business services have valid digital signatures.
        Parameters:
        service -
        publicKey -
        Returns:
        Throws:
        SignatureUtilitiesException
      • sign

        public static void sign(org.uddi.v3.schema.api.PublisherAssertion[] assertion,
                java.security.cert.X509Certificate certificate,
                java.security.Key privateKey)
                         throws SignatureUtilitiesException
        Produces a populated Signature element with a valid digital signature for each supplied PublisherAssertion.
        Parameters:
        assertion -
        certificate -
        privateKey -
        Throws:
        SignatureUtilitiesException
      • verify

        public static Validity[] verify(org.uddi.v3.schema.api.PublisherAssertion[] assertion,
                        java.security.Key publicKey)
                                 throws SignatureUtilitiesException
        Verifies, using the supplied public key, that the supplied publisher assertions have valid digital signatures.
        Parameters:
        assertion -
        publicKey -
        Returns:
        Throws:
        SignatureUtilitiesException
      • sign

        public static void sign(org.uddi.v3.schema.api.TModel[] tmodel,
                java.security.cert.X509Certificate certificate,
                java.security.Key privateKey)
                         throws SignatureUtilitiesException
        Produces a populated Signature element with a valid digital signature for each supplied TModel.
        Parameters:
        tmodel -
        certificate -
        privateKey -
        Throws:
        SignatureUtilitiesException
      • verify

        public static Validity[] verify(org.uddi.v3.schema.api.TModel[] tmodel,
                        java.security.Key publicKey)
                                 throws SignatureUtilitiesException
        Verifies, using the supplied public key, that the supplied TModels have valid digital signatures.
        Parameters:
        tmodel -
        publicKey -
        Returns:
        Throws:
        SignatureUtilitiesException
IBM WebSphere Application ServerTM
Release 9.0