javax.xml.crypto.enc.spec

Class RSAOAEPParameterSpec

  • java.lang.Object
    • javax.xml.crypto.enc.spec.RSAOAEPParameterSpec
    • Field Detail

      • oaepParams

        private byte[] oaepParams
    • Constructor Detail

      • RSAOAEPParameterSpec

        public RSAOAEPParameterSpec(DigestMethod digestMethod)
        Creates an RSAOAEPParameterSpec with the specified digest method.
        Parameters:
        digestMethod - the digest method
        Throws:
        java.lang.NullPointerException - if digest method is null
      • RSAOAEPParameterSpec

        public RSAOAEPParameterSpec(DigestMethod digestMethod,
                                    byte[] oaepParams)
        Creates an RSAOAEPParameterSpec with the specified digest method and OAEP encoding parameters.
        Parameters:
        digestMethod - the digest method
        oaepParams - the encoded OAEP parameters. The array is cloned to prevent subsequent modification.
        Throws:
        java.lang.NullPointerException - if digest method or oaepParams is null
    • Method Detail

      • getDigestMethod

        public DigestMethod getDigestMethod()
        Returns the digest method.
        Returns:
        the digest method
      • getOAEPParams

        public byte[] getOAEPParams()
        Returns the encoded OAEP parameters. Each invocation of this method returns a new clone.
        Returns:
        the encoded OAEP parameters. The array is cloned to prevent subsequent modification, or null if not specified
XML Security (JSR 105/106), 1.8

Copyright © 2015 IBM Corporation. All Rights Reserved.