src/java.base/share/classes/java/security/Signer.java
changeset 58242 94bb65cb37d3
parent 57950 4612a3cfb927
child 58679 9c3209ff7550
equal deleted inserted replaced
58241:33de7752835c 58242:94bb65cb37d3
    82      *
    82      *
    83      * @param name the identity name.
    83      * @param name the identity name.
    84      *
    84      *
    85      * @param scope the scope of the identity.
    85      * @param scope the scope of the identity.
    86      *
    86      *
    87      * @exception KeyManagementException if there is already an identity
    87      * @throws    KeyManagementException if there is already an identity
    88      * with the same name in the scope.
    88      * with the same name in the scope.
    89      */
    89      */
    90     public Signer(String name, IdentityScope scope)
    90     public Signer(String name, IdentityScope scope)
    91     throws KeyManagementException {
    91     throws KeyManagementException {
    92         super(name, scope);
    92         super(name, scope);
   100      * as its argument to see if it's ok to return the private key.
   100      * as its argument to see if it's ok to return the private key.
   101      *
   101      *
   102      * @return this signer's private key, or null if the private key has
   102      * @return this signer's private key, or null if the private key has
   103      * not yet been set.
   103      * not yet been set.
   104      *
   104      *
   105      * @exception  SecurityException  if a security manager exists and its
   105      * @throws     SecurityException  if a security manager exists and its
   106      * {@code checkSecurityAccess} method doesn't allow
   106      * {@code checkSecurityAccess} method doesn't allow
   107      * returning the private key.
   107      * returning the private key.
   108      *
   108      *
   109      * @see SecurityManager#checkSecurityAccess
   109      * @see SecurityManager#checkSecurityAccess
   110      */
   110      */
   120      * method is called with {@code "setSignerKeyPair"}
   120      * method is called with {@code "setSignerKeyPair"}
   121      * as its argument to see if it's ok to set the key pair.
   121      * as its argument to see if it's ok to set the key pair.
   122      *
   122      *
   123      * @param pair an initialized key pair.
   123      * @param pair an initialized key pair.
   124      *
   124      *
   125      * @exception InvalidParameterException if the key pair is not
   125      * @throws    InvalidParameterException if the key pair is not
   126      * properly initialized.
   126      * properly initialized.
   127      * @exception KeyException if the key pair cannot be set for any
   127      * @throws    KeyException if the key pair cannot be set for any
   128      * other reason.
   128      * other reason.
   129      * @exception  SecurityException  if a security manager exists and its
   129      * @throws     SecurityException  if a security manager exists and its
   130      * {@code checkSecurityAccess} method doesn't allow
   130      * {@code checkSecurityAccess} method doesn't allow
   131      * setting the key pair.
   131      * setting the key pair.
   132      *
   132      *
   133      * @see SecurityManager#checkSecurityAccess
   133      * @see SecurityManager#checkSecurityAccess
   134      */
   134      */