public class MapRLoginHttpsClient extends java.lang.Object implements MapRLoginClient
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MAPR_CLIENT_KERBEROS |
static java.lang.String |
NT_GSS_KRB5_PRINCIPAL |
static java.lang.String |
SPNEGO_OID |
| Constructor and Description |
|---|
MapRLoginHttpsClient() |
| Modifier and Type | Method and Description |
|---|---|
com.mapr.fs.proto.Security.TicketAndKey |
authenticateIfNeeded() |
com.mapr.fs.proto.Security.TicketAndKey |
authenticateIfNeeded(java.lang.String cluster) |
com.mapr.fs.proto.Security.TicketAndKey |
generateTicket(GenTicketTypeRequest.TicketType ticketType,
java.lang.String targetUserName,
java.lang.String cluster,
java.lang.Long desiredTicketDurInSecs,
java.lang.Long renewalTicketDurInSecs,
java.util.List<java.lang.Integer> ips,
java.util.List<java.lang.Integer> uids,
java.util.List<java.lang.Integer> gids,
java.lang.String ticketFileLocation) |
com.mapr.fs.proto.Security.TicketAndKey |
getMapRCredentialsViaKerberos(java.lang.Long desiredTicketDurInSecs) |
com.mapr.fs.proto.Security.TicketAndKey |
getMapRCredentialsViaKerberos(java.lang.String cluster,
java.lang.Long desiredTicketDurInSecs) |
com.mapr.fs.proto.Security.TicketAndKey |
getMapRCredentialsViaPassword(java.lang.String username,
java.lang.String password,
java.lang.Long desiredTicketDurInSecs) |
com.mapr.fs.proto.Security.TicketAndKey |
getMapRCredentialsViaPassword(java.lang.String cluster,
java.lang.String username,
java.lang.String password,
java.lang.Long desiredTicketDurInSecs,
java.lang.String ticketLocation) |
boolean |
isSecurityEnabled()
Returns true if the security is enabled for default cluster
|
boolean |
isSecurityEnabled(java.lang.String cluster)
Returns true if the security is enabled for specified cluster
|
void |
logOut() |
void |
logOut(java.lang.String cluster)
Logout of the specified cluster.
|
void |
quietAuthenticateIfNeeded() |
void |
quietAuthenticateIfNeeded(java.lang.String cluster) |
com.mapr.fs.proto.Security.TicketAndKey |
renew(java.lang.Long desiredTicketDurInSecs)
Renew the ticket for default cluster.
|
com.mapr.fs.proto.Security.TicketAndKey |
renew(java.lang.String cluster,
java.lang.Long desiredTicketDurInSecs,
java.lang.String inTicketFile,
java.lang.String ticketLocation)
Renew the ticket for the specified cluster.
|
void |
setCheckUGI(boolean b) |
public static final java.lang.String SPNEGO_OID
public static final java.lang.String NT_GSS_KRB5_PRINCIPAL
public static final java.lang.String MAPR_CLIENT_KERBEROS
public void quietAuthenticateIfNeeded()
public void quietAuthenticateIfNeeded(java.lang.String cluster)
public com.mapr.fs.proto.Security.TicketAndKey authenticateIfNeeded()
throws MapRLoginException
authenticateIfNeeded in interface MapRLoginClientMapRLoginExceptionpublic com.mapr.fs.proto.Security.TicketAndKey authenticateIfNeeded(java.lang.String cluster)
throws MapRLoginException
authenticateIfNeeded in interface MapRLoginClientjava.lang.NullPointerException - if the cluster is nullMapRLoginExceptionpublic boolean isSecurityEnabled()
throws MapRLoginException
isSecurityEnabled in interface MapRLoginClientMapRLoginExceptionpublic boolean isSecurityEnabled(java.lang.String cluster)
isSecurityEnabled in interface MapRLoginClientjava.lang.NullPointerException - if the cluster is nullpublic com.mapr.fs.proto.Security.TicketAndKey getMapRCredentialsViaPassword(java.lang.String username,
java.lang.String password,
java.lang.Long desiredTicketDurInSecs)
throws MapRLoginException
getMapRCredentialsViaPassword in interface MapRLoginClientMapRLoginExceptionpublic com.mapr.fs.proto.Security.TicketAndKey getMapRCredentialsViaPassword(java.lang.String cluster,
java.lang.String username,
java.lang.String password,
java.lang.Long desiredTicketDurInSecs,
java.lang.String ticketLocation)
throws MapRLoginException
getMapRCredentialsViaPassword in interface MapRLoginClientjava.lang.NullPointerException - if the cluster is nullMapRLoginExceptionpublic com.mapr.fs.proto.Security.TicketAndKey getMapRCredentialsViaKerberos(java.lang.Long desiredTicketDurInSecs)
throws MapRLoginException
getMapRCredentialsViaKerberos in interface MapRLoginClientMapRLoginExceptionpublic void setCheckUGI(boolean b)
setCheckUGI in interface MapRLoginClientpublic com.mapr.fs.proto.Security.TicketAndKey getMapRCredentialsViaKerberos(java.lang.String cluster,
java.lang.Long desiredTicketDurInSecs)
throws MapRLoginException
getMapRCredentialsViaKerberos in interface MapRLoginClientjava.lang.NullPointerException - if the cluster is nullMapRLoginExceptionpublic void logOut()
throws MapRLoginException
logOut in interface MapRLoginClientMapRLoginExceptionpublic void logOut(java.lang.String cluster)
throws MapRLoginException
logOut in interface MapRLoginClientjava.lang.NullPointerException - if the cluster is nullMapRLoginExceptionpublic com.mapr.fs.proto.Security.TicketAndKey renew(java.lang.Long desiredTicketDurInSecs)
throws MapRLoginException
renew in interface MapRLoginClientMapRLoginExceptionpublic com.mapr.fs.proto.Security.TicketAndKey renew(java.lang.String cluster,
java.lang.Long desiredTicketDurInSecs,
java.lang.String inTicketFile,
java.lang.String ticketLocation)
throws MapRLoginException
renew in interface MapRLoginClientjava.lang.NullPointerException - if the cluster is nullMapRLoginExceptionpublic com.mapr.fs.proto.Security.TicketAndKey generateTicket(GenTicketTypeRequest.TicketType ticketType, java.lang.String targetUserName, java.lang.String cluster, java.lang.Long desiredTicketDurInSecs, java.lang.Long renewalTicketDurInSecs, java.util.List<java.lang.Integer> ips, java.util.List<java.lang.Integer> uids, java.util.List<java.lang.Integer> gids, java.lang.String ticketFileLocation) throws MapRLoginException
generateTicket in interface MapRLoginClientMapRLoginException