< prev index next >

src/java.base/share/classes/java/security/Signer.java

Print this page
rev 56290 : 8230648: Replace @exception tag with @throws in java.base
Summary: Minor coding style update of javadoc tag in any file in java.base
Reviewed-by: prappo, lancea

*** 82,92 **** * * @param name the identity name. * * @param scope the scope of the identity. * ! * @exception KeyManagementException if there is already an identity * with the same name in the scope. */ public Signer(String name, IdentityScope scope) throws KeyManagementException { super(name, scope); --- 82,92 ---- * * @param name the identity name. * * @param scope the scope of the identity. * ! * @throws KeyManagementException if there is already an identity * with the same name in the scope. */ public Signer(String name, IdentityScope scope) throws KeyManagementException { super(name, scope);
*** 100,110 **** * as its argument to see if it's ok to return the private key. * * @return this signer's private key, or null if the private key has * not yet been set. * ! * @exception SecurityException if a security manager exists and its * {@code checkSecurityAccess} method doesn't allow * returning the private key. * * @see SecurityManager#checkSecurityAccess */ --- 100,110 ---- * as its argument to see if it's ok to return the private key. * * @return this signer's private key, or null if the private key has * not yet been set. * ! * @throws SecurityException if a security manager exists and its * {@code checkSecurityAccess} method doesn't allow * returning the private key. * * @see SecurityManager#checkSecurityAccess */
*** 120,134 **** * method is called with {@code "setSignerKeyPair"} * as its argument to see if it's ok to set the key pair. * * @param pair an initialized key pair. * ! * @exception InvalidParameterException if the key pair is not * properly initialized. ! * @exception KeyException if the key pair cannot be set for any * other reason. ! * @exception SecurityException if a security manager exists and its * {@code checkSecurityAccess} method doesn't allow * setting the key pair. * * @see SecurityManager#checkSecurityAccess */ --- 120,134 ---- * method is called with {@code "setSignerKeyPair"} * as its argument to see if it's ok to set the key pair. * * @param pair an initialized key pair. * ! * @throws InvalidParameterException if the key pair is not * properly initialized. ! * @throws KeyException if the key pair cannot be set for any * other reason. ! * @throws SecurityException if a security manager exists and its * {@code checkSecurityAccess} method doesn't allow * setting the key pair. * * @see SecurityManager#checkSecurityAccess */
< prev index next >