| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Credentials | Returns: the creds (cname=user, sname=backend)the name of the backend service backend, Credentials containing the user's service ticket to the middle server userCreds, PrincipalName client, Credentials the TGT of the middle server middleTGT)Used by a middle server to acquire a service ticket to a backend server using the S4U2proxy extension. |
| public static Credentials | Returns: the new creds (cname=user, sname=middle)the user to impersonate user, Credentials the TGT of the middle service middleTGT)Used by a middle server to acquire credentials on behalf of a user to itself using the S4U2self extension. |
| public static Credentials | acquireServiceCreds(String
the name of service principal service, Credentials client's initial credential initCreds)Acquires credentials for a specified service using initial credential. |
| private static Credentials | Returns: the TGT for the other realm, null if cannot find a paththis realm localRealm, String the other realm, cannot equals to localRealm serviceRealm, Credentials TGT in this realm localTGT, boolean[] an [out] argument to receive the okAsDelegate
property. True only if all realms allow delegation. okAsDelegate)Gets a TGT to another realm |
| private static String | Returns: the backend realm for the last S4U2Proxy requestmiddle service credentials used for the first S4U2Proxy
request asCreds, Credentials[] (in/out parameter):
* input: first S4U2Proxy referral TGT received, null
* output: referral TGT for final S4U2Proxy service request,
client referral TGT for final S4U2Proxy service request
(to be sent as additional-ticket) credsInOut, PrincipalName the backend service name sname)This method is called after receiving the first realm referral for a S4U2Proxy request. |
| private static void | handleS4U2SelfReferral(PAData[] pas, PrincipalName user, Credentials newCreds)
PA-FOR-USER may need to be regenerated if credentials change. |
| private static Credentials | |
| private static Credentials | serviceCreds(KDCOptions options, Credentials asCreds, PrincipalName cname, PrincipalName sname, PrincipalName user, Credentials additionalCreds, PAData[] extraPAs, CredentialsUtil.
|
| private static Credentials | serviceCredsReferrals(KDCOptions options, Credentials asCreds, PrincipalName cname, PrincipalName sname, CredentialsUtil.
|
| private static Credentials | serviceCredsSingle(KDCOptions options, Credentials asCreds, PrincipalName cname, PrincipalName clientAlias, PrincipalName refSname, PrincipalName sname, CredentialsUtil.
|
| CredentialsUtil | back to summary |
|---|---|
| public CredentialsUtil() | |
| acquireS4U2proxyCreds | back to summary |
|---|---|
| public static Credentials acquireS4U2proxyCreds(String backend, Credentials userCreds, PrincipalName client, Credentials middleTGT) throws KrbException, IOException Used by a middle server to acquire a service ticket to a backend server using the S4U2proxy extension.
| |
| acquireS4U2selfCreds | back to summary |
|---|---|
| public static Credentials acquireS4U2selfCreds(PrincipalName user, Credentials middleTGT) throws KrbException, IOException Used by a middle server to acquire credentials on behalf of a user to itself using the S4U2self extension.
| |
| 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 foreign KDC.
| |
| getTGTforRealm | back to summary |
|---|---|
| private static Credentials getTGTforRealm(String localRealm, String serviceRealm, Credentials localTGT, boolean[] okAsDelegate) throws KrbException Gets a TGT to another realm
| |
| handleS4U2ProxyReferral | back to summary |
|---|---|
| private static String handleS4U2ProxyReferral(Credentials asCreds, Credentials[] credsInOut, PrincipalName sname) throws KrbException, IOException This method is called after receiving the first realm referral for a S4U2Proxy request. The credentials and tickets needed for the final S4U2Proxy request (in the referrals chain) are returned. Referrals are handled as described by MS-SFU (section 3.1.5.2.2 Receives Referral).
| |
| handleS4U2SelfReferral | back to summary |
|---|---|
| private static void handleS4U2SelfReferral(PAData[] pas, PrincipalName user, Credentials newCreds) throws Asn1Exception, KrbException, IOException PA-FOR-USER may need to be regenerated if credentials change. This may happen when obtaining a TGT for a different realm or when using a referral TGT. | |
| serviceCreds | back to summary |
|---|---|
| private static Credentials serviceCreds(PrincipalName service, Credentials initCreds) throws KrbException, IOException | |
| serviceCreds | back to summary |
|---|---|
| private static Credentials serviceCreds(KDCOptions options, Credentials asCreds, PrincipalName cname, PrincipalName sname, PrincipalName user, Credentials additionalCreds, PAData[] extraPAs, CredentialsUtil. | |
| serviceCredsReferrals | back to summary |
|---|---|
| private static Credentials serviceCredsReferrals(KDCOptions options, Credentials asCreds, PrincipalName cname, PrincipalName sname, CredentialsUtil. | |
| serviceCredsSingle | back to summary |
|---|---|
| private static Credentials serviceCredsSingle(KDCOptions options, Credentials asCreds, PrincipalName cname, PrincipalName clientAlias, PrincipalName refSname, PrincipalName sname, CredentialsUtil. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final CredentialsUtil. | |
| public static final CredentialsUtil. | |
| public static final CredentialsUtil. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CredentialsUtil. | |
| public static CredentialsUtil. |
| NONE | back to summary |
|---|---|
| public static final CredentialsUtil. | |
| PROXY | back to summary |
|---|---|
| public static final CredentialsUtil. | |
| SELF | back to summary |
|---|---|
| public static final CredentialsUtil. | |
| S4U2Type | back to summary |
|---|---|
| private S4U2Type() | |
| valueOf | back to summary |
|---|---|
| public static CredentialsUtil. | |
| values | back to summary |
|---|---|
| public static CredentialsUtil. | |