Top Description Fields Constructors Methods
sun.security.jgss.krb5

pack-priv Class SubjectComber

extends Object
Class Inheritance
Imports
sun.security.krb5.JavaxSecurityAuthKerberosAccess, .KerberosSecrets, javax.security.auth.kerberos.KerberosTicket, .KerberosKey, .KerberosPrincipal, .KeyTab, javax.security.auth.Subject, .DestroyFailedException, java.util.Iterator, .ArrayList, .List, .Set

This utility looks through the current Subject and retrieves private credentials for the desired client/server principals.
Author
Ram Marti
Since
1.4.2

Field Summary

Modifier and TypeField and Description
private static final boolean

Constructor Summary

AccessConstructor and Description
private
SubjectComber()

Default constructor

Method Summary

Modifier and TypeMethod and Description
pack-priv static <T> T
find(Subject subject, String serverPrincipal, String clientPrincipal, Class<T> credClass)

private static <T> Object

Returns:

the private credentials
findAux
(Subject subject, String serverPrincipal, String clientPrincipal, Class<T> credClass, boolean oneOnly)

Find private credentials for the specified client/server principals in the subject.

private static String
pack-priv static <T> List<T>
findMany(Subject subject, String serverPrincipal, String clientPrincipal, Class<T> credClass)

private static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEBUGback to summary
private static final boolean DEBUG

Constructor Detail

SubjectComberback to summary
private SubjectComber()

Default constructor

Method Detail

findback to summary
pack-priv static <T> T find(Subject subject, String serverPrincipal, String clientPrincipal, Class<T> credClass)
findAuxback to summary
private static <T> Object findAux(Subject subject, String serverPrincipal, String clientPrincipal, Class<T> credClass, boolean oneOnly)

Find private credentials for the specified client/server principals in the subject. Returns null if the subject is null.

Returns:Object

the private credentials

findClientMatchback to summary
private static String findClientMatch(String input, KerberosTicket ticket)
findManyback to summary
pack-priv static <T> List<T> findMany(Subject subject, String serverPrincipal, String clientPrincipal, Class<T> credClass)
Annotations
@SuppressWarnings:unchecked
findServerMatchback to summary
private static String findServerMatch(String input, KerberosTicket ticket)