Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
levy5307 committed Oct 28, 2020
1 parent a6dda3e commit f7b9c74
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
22 changes: 22 additions & 0 deletions src/main/java/com/xiaomi/infra/pegasus/client/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -401,11 +401,23 @@ public Builder serviceFQDN(String serviceFQDN) {
return this;
}

/**
* kerberos keytab. Defaults to {@literal ""}, see {@link #DEFAULT_KEYTAB}.
*
* @param keyTab
* @return {@code this}
*/
public Builder keyTab(String keyTab) {
this.keyTab = keyTab;
return this;
}

/**
* kerberos principal. Defaults to {@literal ""}, see {@link #DEFAULT_PRINCIPAL}.
*
* @param principal
* @return {@code this}
*/
public Builder principal(String principal) {
this.principal = principal;
return this;
Expand Down Expand Up @@ -551,10 +563,20 @@ public String getServiceFQDN() {
return serviceFQDN;
}

/**
* kerberos principal. Defaults to {@literal ""}.
*
* @return kerberos principal.
*/
public String getPrincipal() {
return principal;
}

/**
* kerberos keytab. Defaults to {@literal ""}.
*
* @return kerberos keytab.
*/
public String getKeyTab() {
return keyTab;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ public class SecurityReplicaSessionInterceptor implements ReplicaSessionIntercep
private String serviceName;
private String serviceFqdn;

// JAAS internal class, Ref:
// Subject is a JAAS internal class, Ref:
// https://docs.oracle.com/javase/7/docs/technotes/guides/security/jaas/JAASRefGuide.html
//
// To authorize access to resources, applications first need to authenticate the source of the
// request. The JAAS framework defines the term subject to represent the source of a request. A
// subject may be any entity, such as a person or a service
// request. The JAAS framework defines the term "subject" to represent the source of a request. A
// subject may be any entity, such as a person or a service.
private Subject subject;
// The LoginContext class provides the basic methods used to authenticate subjects, and provides a
// way to develop an application independent of the underlying authentication technology
Expand Down

0 comments on commit f7b9c74

Please sign in to comment.