< prev index next >

src/java.base/share/classes/java/security/IdentityScope.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

*** 119,129 **** * Constructs a new identity scope with the specified name and scope. * * @param name the scope name. * @param scope the scope for the new identity scope. * ! * @exception KeyManagementException if there is already an identity * with the same name in the scope. */ public IdentityScope(String name, IdentityScope scope) throws KeyManagementException { super(name, scope); --- 119,129 ---- * Constructs a new identity scope with the specified name and scope. * * @param name the scope name. * @param scope the scope for the new identity scope. * ! * @throws KeyManagementException if there is already an identity * with the same name in the scope. */ public IdentityScope(String name, IdentityScope scope) throws KeyManagementException { super(name, scope);
*** 153,163 **** * method is called with {@code "setSystemScope"} * as its argument to see if it's ok to set the identity scope. * * @param scope the scope to set. * ! * @exception SecurityException if a security manager exists and its * {@code checkSecurityAccess} method doesn't allow * setting the identity scope. * * @see #getSystemScope * @see SecurityManager#checkSecurityAccess --- 153,163 ---- * method is called with {@code "setSystemScope"} * as its argument to see if it's ok to set the identity scope. * * @param scope the scope to set. * ! * @throws SecurityException if a security manager exists and its * {@code checkSecurityAccess} method doesn't allow * setting the identity scope. * * @see #getSystemScope * @see SecurityManager#checkSecurityAccess
*** 212,222 **** /** * Adds an identity to this identity scope. * * @param identity the identity to be added. * ! * @exception KeyManagementException if the identity is not * valid, a name conflict occurs, another identity has the same * public key as the identity being added, or another exception * occurs. */ public abstract void addIdentity(Identity identity) throws KeyManagementException; --- 212,222 ---- /** * Adds an identity to this identity scope. * * @param identity the identity to be added. * ! * @throws KeyManagementException if the identity is not * valid, a name conflict occurs, another identity has the same * public key as the identity being added, or another exception * occurs. */ public abstract void addIdentity(Identity identity) throws KeyManagementException;
*** 224,234 **** /** * Removes an identity from this identity scope. * * @param identity the identity to be removed. * ! * @exception KeyManagementException if the identity is missing, * or another exception occurs. */ public abstract void removeIdentity(Identity identity) throws KeyManagementException; --- 224,234 ---- /** * Removes an identity from this identity scope. * * @param identity the identity to be removed. * ! * @throws KeyManagementException if the identity is missing, * or another exception occurs. */ public abstract void removeIdentity(Identity identity) throws KeyManagementException;
< prev index next >