Beispiel #1
0
 /**
  * Returns this {@code Subject}'s public credentials which are a subclass of the {@code Class}
  * provided.
  *
  * @param c the {@code Class} as a criteria which the public credentials returned must satisfy.
  * @return this {@code Subject}'s public credentials. Modifications to the returned set of
  *     credentials do not affect this {@code Subject}'s credentials.
  */
 public <T> Set<T> getPublicCredentials(Class<T> c) {
   return publicCredentials.get(c);
 }
Beispiel #2
0
 /**
  * Returns this {@code Subject}'s private credentials which are a subclass of the {@code Class}
  * provided.
  *
  * @param c the {@code Class} as a criteria which the private credentials returned must satisfy.
  * @return this {@code Subject}'s private credentials. Modifications to the returned set of
  *     credentials do not affect this {@code Subject}'s credentials.
  */
 public <T> Set<T> getPrivateCredentials(Class<T> c) {
   return privateCredentials.get(c);
 }