jdk/src/share/classes/javax/security/auth/kerberos/ServicePermission.java
changeset 18830 90956ead732f
parent 14342 8435a30053c1
child 21955 abc02575919c
equal deleted inserted replaced
18829:ec84f0c313b0 18830:90956ead732f
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    48  * A ServicePermission contains a service principal name and
    48  * A ServicePermission contains a service principal name and
    49  * a list of actions which specify the context the credential can be
    49  * a list of actions which specify the context the credential can be
    50  * used within.
    50  * used within.
    51  * <p>
    51  * <p>
    52  * The service principal name is the canonical name of the
    52  * The service principal name is the canonical name of the
    53  * <code>KereberosPrincipal</code> supplying the service, that is
    53  * {@code KereberosPrincipal} supplying the service, that is
    54  * the KerberosPrincipal represents a Kerberos service
    54  * the KerberosPrincipal represents a Kerberos service
    55  * principal. This name is treated in a case sensitive manner.
    55  * principal. This name is treated in a case sensitive manner.
    56  * An asterisk may appear by itself, to signify any service principal.
    56  * An asterisk may appear by itself, to signify any service principal.
    57  * <p>
    57  * <p>
    58  * Granting this permission implies that the caller can use a cached
    58  * Granting this permission implies that the caller can use a cached
   133 
   133 
   134     private String actions; // Left null as long as possible, then
   134     private String actions; // Left null as long as possible, then
   135                             // created and re-used in the getAction function.
   135                             // created and re-used in the getAction function.
   136 
   136 
   137     /**
   137     /**
   138      * Create a new <code>ServicePermission</code>
   138      * Create a new {@code ServicePermission}
   139      * with the specified <code>servicePrincipal</code>
   139      * with the specified {@code servicePrincipal}
   140      * and <code>action</code>.
   140      * and {@code action}.
   141      *
   141      *
   142      * @param servicePrincipal the name of the service principal.
   142      * @param servicePrincipal the name of the service principal.
   143      * An asterisk may appear by itself, to signify any service principal.
   143      * An asterisk may appear by itself, to signify any service principal.
   144      * <p>
   144      * <p>
   145      * @param action the action string
   145      * @param action the action string
   167 
   167 
   168     /**
   168     /**
   169      * Checks if this Kerberos service permission object "implies" the
   169      * Checks if this Kerberos service permission object "implies" the
   170      * specified permission.
   170      * specified permission.
   171      * <P>
   171      * <P>
   172      * If none of the above are true, <code>implies</code> returns false.
   172      * If none of the above are true, {@code implies} returns false.
   173      * @param p the permission to check against.
   173      * @param p the permission to check against.
   174      *
   174      *
   175      * @return true if the specified permission is implied by this object,
   175      * @return true if the specified permission is implied by this object,
   176      * false if not.
   176      * false if not.
   177      */
   177      */