src/java.base/share/classes/java/security/Signature.java
changeset 51229 17b7d7034e8e
parent 50204 3195a713e24d
child 53018 8bf9268df0e2
equal deleted inserted replaced
51228:087c3ba2d138 51229:17b7d7034e8e
   698      * @exception SignatureException if this signature object is not
   698      * @exception SignatureException if this signature object is not
   699      * initialized properly, the passed-in signature is improperly
   699      * initialized properly, the passed-in signature is improperly
   700      * encoded or of the wrong type, if this signature algorithm is unable to
   700      * encoded or of the wrong type, if this signature algorithm is unable to
   701      * process the input data provided, etc.
   701      * process the input data provided, etc.
   702      * @exception IllegalArgumentException if the {@code signature}
   702      * @exception IllegalArgumentException if the {@code signature}
   703      * byte array is null, or the {@code offset} or {@code length}
   703      * byte array is {@code null}, or the {@code offset} or {@code length}
   704      * is less than 0, or the sum of the {@code offset} and
   704      * is less than 0, or the sum of the {@code offset} and
   705      * {@code length} is greater than the length of the
   705      * {@code length} is greater than the length of the
   706      * {@code signature} byte array.
   706      * {@code signature} byte array.
   707      * @since 1.4
   707      * @since 1.4
   708      */
   708      */
   895     }
   895     }
   896 
   896 
   897     /**
   897     /**
   898      * Returns the parameters used with this signature object.
   898      * Returns the parameters used with this signature object.
   899      *
   899      *
   900      * <p>The returned parameters may be the same that were used to initialize
   900      * <p> If this signature has been previously initialized with parameters
   901      * this signature, or may contain a combination of default and randomly
   901      * (by calling the {@code setParameter} method), this method returns
   902      * generated parameter values used by the underlying signature
   902      * the same parameters. If this signature has not been initialized with
   903      * implementation if this signature requires algorithm parameters but
   903      * parameters, this method may return a combination of default and
   904      * was not initialized with any.
   904      * randomly generated parameter values if the underlying
   905      *
   905      * signature implementation supports it and can successfully generate
   906      * @return the parameters used with this signature, or null if this
   906      * them. Otherwise, {@code null} is returned.
   907      * signature does not use any parameters.
   907      *
       
   908      * @return the parameters used with this signature, or {@code null}
   908      *
   909      *
   909      * @see #setParameter(AlgorithmParameterSpec)
   910      * @see #setParameter(AlgorithmParameterSpec)
   910      * @since 1.4
   911      * @since 1.4
   911      */
   912      */
   912     public final AlgorithmParameters getParameters() {
   913     public final AlgorithmParameters getParameters() {
   923      * computation. A uniform algorithm-specific naming scheme for each
   924      * computation. A uniform algorithm-specific naming scheme for each
   924      * parameter is desirable but left unspecified at this time.
   925      * parameter is desirable but left unspecified at this time.
   925      *
   926      *
   926      * @param param the string name of the parameter.
   927      * @param param the string name of the parameter.
   927      *
   928      *
   928      * @return the object that represents the parameter value, or null if
   929      * @return the object that represents the parameter value, or {@code null} if
   929      * there is none.
   930      * there is none.
   930      *
   931      *
   931      * @exception InvalidParameterException if {@code param} is an invalid
   932      * @exception InvalidParameterException if {@code param} is an invalid
   932      * parameter for this engine, or another exception occurs while
   933      * parameter for this engine, or another exception occurs while
   933      * trying to get this parameter.
   934      * trying to get this parameter.