src/java.base/share/classes/java/security/IdentityScope.java
changeset 58242 94bb65cb37d3
parent 57950 4612a3cfb927
child 58679 9c3209ff7550
equal deleted inserted replaced
58241:33de7752835c 58242:94bb65cb37d3
   119      * Constructs a new identity scope with the specified name and scope.
   119      * Constructs a new identity scope with the specified name and scope.
   120      *
   120      *
   121      * @param name the scope name.
   121      * @param name the scope name.
   122      * @param scope the scope for the new identity scope.
   122      * @param scope the scope for the new identity scope.
   123      *
   123      *
   124      * @exception KeyManagementException if there is already an identity
   124      * @throws    KeyManagementException if there is already an identity
   125      * with the same name in the scope.
   125      * with the same name in the scope.
   126      */
   126      */
   127     public IdentityScope(String name, IdentityScope scope)
   127     public IdentityScope(String name, IdentityScope scope)
   128     throws KeyManagementException {
   128     throws KeyManagementException {
   129         super(name, scope);
   129         super(name, scope);
   153      * method is called with {@code "setSystemScope"}
   153      * method is called with {@code "setSystemScope"}
   154      * as its argument to see if it's ok to set the identity scope.
   154      * as its argument to see if it's ok to set the identity scope.
   155      *
   155      *
   156      * @param scope the scope to set.
   156      * @param scope the scope to set.
   157      *
   157      *
   158      * @exception  SecurityException  if a security manager exists and its
   158      * @throws     SecurityException  if a security manager exists and its
   159      * {@code checkSecurityAccess} method doesn't allow
   159      * {@code checkSecurityAccess} method doesn't allow
   160      * setting the identity scope.
   160      * setting the identity scope.
   161      *
   161      *
   162      * @see #getSystemScope
   162      * @see #getSystemScope
   163      * @see SecurityManager#checkSecurityAccess
   163      * @see SecurityManager#checkSecurityAccess
   212     /**
   212     /**
   213      * Adds an identity to this identity scope.
   213      * Adds an identity to this identity scope.
   214      *
   214      *
   215      * @param identity the identity to be added.
   215      * @param identity the identity to be added.
   216      *
   216      *
   217      * @exception KeyManagementException if the identity is not
   217      * @throws    KeyManagementException if the identity is not
   218      * valid, a name conflict occurs, another identity has the same
   218      * valid, a name conflict occurs, another identity has the same
   219      * public key as the identity being added, or another exception
   219      * public key as the identity being added, or another exception
   220      * occurs. */
   220      * occurs. */
   221     public abstract void addIdentity(Identity identity)
   221     public abstract void addIdentity(Identity identity)
   222     throws KeyManagementException;
   222     throws KeyManagementException;
   224     /**
   224     /**
   225      * Removes an identity from this identity scope.
   225      * Removes an identity from this identity scope.
   226      *
   226      *
   227      * @param identity the identity to be removed.
   227      * @param identity the identity to be removed.
   228      *
   228      *
   229      * @exception KeyManagementException if the identity is missing,
   229      * @throws    KeyManagementException if the identity is missing,
   230      * or another exception occurs.
   230      * or another exception occurs.
   231      */
   231      */
   232     public abstract void removeIdentity(Identity identity)
   232     public abstract void removeIdentity(Identity identity)
   233     throws KeyManagementException;
   233     throws KeyManagementException;
   234 
   234