< 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,11 +119,11 @@
* 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
+ * @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,11 +153,11 @@
* 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
+ * @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,11 +212,11 @@
/**
* Adds an identity to this identity scope.
*
* @param identity the identity to be added.
*
- * @exception KeyManagementException if the identity is not
+ * @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,11 +224,11 @@
/**
* Removes an identity from this identity scope.
*
* @param identity the identity to be removed.
*
- * @exception KeyManagementException if the identity is missing,
+ * @throws KeyManagementException if the identity is missing,
* or another exception occurs.
*/
public abstract void removeIdentity(Identity identity)
throws KeyManagementException;
< prev index next >