Modifier and Type | Field and Description |
---|---|
pack-priv static boolean | |
private static boolean | |
pack-priv KerberosTime | |
pack-priv AuthorizationData | |
pack-priv HostAddresses | |
pack-priv PrincipalName | |
pack-priv PrincipalName | |
private static boolean | |
pack-priv KerberosTime | |
pack-priv TicketFlags | |
pack-priv EncryptionKey | |
private Credentials | |
pack-priv KerberosTime | |
public static final boolean | |
pack-priv PrincipalName | |
pack-priv PrincipalName | |
pack-priv KerberosTime | |
pack-priv Ticket |
Access | Constructor and Description |
---|---|
public | Credentials(Ticket new_ticket, PrincipalName new_client, PrincipalName new_client_alias, PrincipalName new_server, PrincipalName new_server_alias, EncryptionKey new_key, TicketFlags new_flags, KerberosTime authTime, KerberosTime new_startTime, KerberosTime new_endTime, KerberosTime renewTill, HostAddresses cAddr, AuthorizationData authzData)
|
public | Credentials(Ticket new_ticket, PrincipalName new_client, PrincipalName new_client_alias, PrincipalName new_server, PrincipalName new_server_alias, EncryptionKey new_key, TicketFlags new_flags, KerberosTime authTime, KerberosTime new_startTime, KerberosTime new_endTime, KerberosTime renewTill, HostAddresses cAddr)
|
public | Credentials(byte[] encoding, String client, String clientAlias, String server, String serverAlias, byte[] keyBytes, int keyType, boolean[] flags, Date authTime, Date startTime, Date endTime, Date renewTill, InetAddress[] cAddrs)
|
Modifier and Type | Method and Description |
---|---|
public static synchronized Credentials | Returns: aKrbCreds object if the credential is found,
otherwise return null.Acquires default credentials. |
private static native Credentials | |
public static Credentials | acquireS4U2proxyCreds(String service, Credentials userCreds, PrincipalName client, Credentials middleTGT)
|
public static Credentials | |
public static Credentials | Returns: aCredentials object.the name of service principal using format
components@realm service, Credentials client's initial credential. initCreds)Acquires credentials for a specified service using initial credential. |
public static Credentials | Returns: the TGT credentials or null if none were found. If the tgt expired, it is the responsibility of the caller to determine this.the client principal. A value of null means that the
default principal name in the credentials cache will be used. princ, String the path to the tickets file. A value
of null will be accepted to indicate that the default
path should be searched ticketCache)Returns a TGT for the given client principal from a ticket cache. |
public boolean | Returns: true if OK-AS_DELEGATE flag is set, otherwise, return false.Checks if the service ticket returned by the KDC has the OK-AS-DELEGATE flag set |
private static KerberosTime | |
pack-priv static void | |
public final Date | |
public AuthorizationData | |
public final PrincipalName | |
public final InetAddress[] | |
public final PrincipalName | |
public final byte[] | |
public final Date | |
public final boolean[] | |
public Credentials | |
public final Date | |
public final PrincipalName | |
public final PrincipalName | |
public final EncryptionKey | |
public final Date | |
public Ticket | |
public TicketFlags | |
public boolean | |
public boolean | |
public static void | |
public Credentials | |
public void | resetDelegate()
Reset TKT_OPTS_DELEGATE to false, called at credentials acquirement when one of the cross-realm TGTs does not have the OK-AS-DELEGATE flag set. |
public Credentials | |
public Credentials | |
public String |
alreadyLoaded | back to summary |
---|---|
pack-priv static boolean alreadyLoaded |
alreadyTried | back to summary |
---|---|
private static boolean alreadyTried |
authTime | back to summary |
---|---|
pack-priv KerberosTime authTime |
authzData | back to summary |
---|---|
pack-priv AuthorizationData authzData |
cAddr | back to summary |
---|---|
pack-priv HostAddresses cAddr |
client | back to summary |
---|---|
pack-priv PrincipalName client |
clientAlias | back to summary |
---|---|
pack-priv PrincipalName clientAlias |
DEBUG | back to summary |
---|---|
private static boolean DEBUG |
endTime | back to summary |
---|---|
pack-priv KerberosTime endTime |
flags | back to summary |
---|---|
pack-priv TicketFlags flags |
key | back to summary |
---|---|
pack-priv EncryptionKey key |
proxy | back to summary |
---|---|
private Credentials proxy |
renewTill | back to summary |
---|---|
pack-priv KerberosTime renewTill |
S4U2PROXY_ACCEPT_NON_FORWARDABLE | back to summary |
---|---|
public static final boolean S4U2PROXY_ACCEPT_NON_FORWARDABLE |
server | back to summary |
---|---|
pack-priv PrincipalName server |
serverAlias | back to summary |
---|---|
pack-priv PrincipalName serverAlias |
startTime | back to summary |
---|---|
pack-priv KerberosTime startTime |
ticket | back to summary |
---|---|
pack-priv Ticket ticket |
Credentials | back to summary |
---|---|
public Credentials(Ticket new_ticket, PrincipalName new_client, PrincipalName new_client_alias, PrincipalName new_server, PrincipalName new_server_alias, EncryptionKey new_key, TicketFlags new_flags, KerberosTime authTime, KerberosTime new_startTime, KerberosTime new_endTime, KerberosTime renewTill, HostAddresses cAddr, AuthorizationData authzData) |
Credentials | back to summary |
---|---|
public Credentials(Ticket new_ticket, PrincipalName new_client, PrincipalName new_client_alias, PrincipalName new_server, PrincipalName new_server_alias, EncryptionKey new_key, TicketFlags new_flags, KerberosTime authTime, KerberosTime new_startTime, KerberosTime new_endTime, KerberosTime renewTill, HostAddresses cAddr) |
Credentials | back to summary |
---|---|
public Credentials(byte[] encoding, String client, String clientAlias, String server, String serverAlias, byte[] keyBytes, int keyType, boolean[] flags, Date authTime, Date startTime, Date endTime, Date renewTill, InetAddress[] cAddrs) throws KrbException, IOException |
acquireDefaultCreds | back to summary |
---|---|
public static synchronized Credentials acquireDefaultCreds() Acquires default credentials.
|
acquireDefaultNativeCreds | back to summary |
---|---|
private static native Credentials acquireDefaultNativeCreds(int[] eTypes) |
acquireS4U2proxyCreds | back to summary |
---|---|
public static Credentials acquireS4U2proxyCreds(String service, Credentials userCreds, PrincipalName client, Credentials middleTGT) throws KrbException, IOException |
acquireS4U2selfCreds | back to summary |
---|---|
public static Credentials acquireS4U2selfCreds(PrincipalName user, Credentials middleTGT) throws KrbException, IOException |
acquireServiceCreds | back to summary |
---|---|
public static Credentials acquireServiceCreds(String service, Credentials initCreds) throws KrbException, IOException Acquires credentials for a specified service using initial credential. When the service has a different realm from the initial credential, we do cross-realm authentication - first, we use the current credential to get a cross-realm credential from the local KDC, then use that cross-realm credential to request service credential from the foreigh KDC.
|
acquireTGTFromCache | back to summary |
---|---|
public static Credentials acquireTGTFromCache(PrincipalName princ, String ticketCache) throws KrbException, IOException Returns a TGT for the given client principal from a ticket cache.
|
checkDelegate | back to summary |
---|---|
public boolean checkDelegate() Checks if the service ticket returned by the KDC has the OK-AS-DELEGATE flag set
|
date2kt | back to summary |
---|---|
private static KerberosTime date2kt(Date d) |
ensureLoaded | back to summary |
---|---|
pack-priv static void ensureLoaded()
|
getAuthTime | back to summary |
---|---|
public final Date getAuthTime() |
getAuthzData | back to summary |
---|---|
public AuthorizationData getAuthzData() |
getClient | back to summary |
---|---|
public final PrincipalName getClient() Acquires a service ticket for the specified service principal. If the service ticket is not already available, it obtains a new one from the KDC. |
getClientAddresses | back to summary |
---|---|
public final InetAddress[] getClientAddresses() |
getClientAlias | back to summary |
---|---|
public final PrincipalName getClientAlias() |
getEncoded | back to summary |
---|---|
public final byte[] getEncoded() |
getEndTime | back to summary |
---|---|
public final Date getEndTime() |
getFlags | back to summary |
---|---|
public final boolean[] getFlags() |
getProxy | back to summary |
---|---|
public Credentials getProxy() |
getRenewTill | back to summary |
---|---|
public final Date getRenewTill() |
getServer | back to summary |
---|---|
public final PrincipalName getServer() |
getServerAlias | back to summary |
---|---|
public final PrincipalName getServerAlias() |
getSessionKey | back to summary |
---|---|
public final EncryptionKey getSessionKey() |
getStartTime | back to summary |
---|---|
public final Date getStartTime() |
getTicket | back to summary |
---|---|
public Ticket getTicket() |
getTicketFlags | back to summary |
---|---|
public TicketFlags getTicketFlags() |
isForwardable | back to summary |
---|---|
public boolean isForwardable() |
isRenewable | back to summary |
---|---|
public boolean isRenewable() |
printDebug | back to summary |
---|---|
public static void printDebug(Credentials c) |
renew | back to summary |
---|---|
public Credentials renew() throws KrbException, IOException |
resetDelegate | back to summary |
---|---|
public void resetDelegate() Reset TKT_OPTS_DELEGATE to false, called at credentials acquirement when one of the cross-realm TGTs does not have the OK-AS-DELEGATE flag set. This info must be preservable and restorable through the Krb5Util.credsToTicket/ticketToCreds() methods so that even if the service ticket is cached it still remembers the cross-realm authentication result. |
setProxy | back to summary |
---|---|
public Credentials setProxy(Credentials proxy) |
toCCacheCreds | back to summary |
---|---|
public Credentials toCCacheCreds() |
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object.
|