jdk/src/share/classes/java/security/Principal.java
changeset 19828 b4f91bc595fe
parent 15013 4a17ca431caf
equal deleted inserted replaced
19827:082c76535c1f 19828:b4f91bc595fe
     1 /*
     1 /*
     2  * Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1996, 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
    79      * is equal to this principal.
    79      * is equal to this principal.
    80      *
    80      *
    81      * <p>Subclasses may override this with a different implementation, if
    81      * <p>Subclasses may override this with a different implementation, if
    82      * necessary.
    82      * necessary.
    83      *
    83      *
       
    84      * @param subject the {@code Subject}
    84      * @return true if {@code subject} is non-null and is
    85      * @return true if {@code subject} is non-null and is
    85      *              implied by this principal, or false otherwise.
    86      *              implied by this principal, or false otherwise.
    86      * @since 1.8
    87      * @since 1.8
    87      */
    88      */
    88     public default boolean implies(Subject subject) {
    89     public default boolean implies(Subject subject) {