Package com.mapr.login.client
Class MapRLoginHttpsClient
java.lang.Object
com.mapr.login.client.MapRLoginHttpsClient
- All Implemented Interfaces:
MapRLoginClient
Author: smarella
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mapr.fs.proto.Security.TicketAndKeycom.mapr.fs.proto.Security.TicketAndKeyauthenticateIfNeeded(String cluster) com.mapr.fs.proto.Security.TicketAndKeyauthenticateIfNeeded(String cluster, com.mapr.fs.proto.Security.ServerKeyType keyToUse) com.mapr.fs.proto.Security.TicketAndKeygenerateTicket(GenTicketTypeRequest.TicketType ticketType, String targetUserName, String cluster, Long desiredTicketDurInSecs, Long renewalTicketDurInSecs, List<CLDBRpcCommonUtils.IpAddr> ips, List<Integer> uids, List<Integer> gids, String ticketFileLocation) com.mapr.fs.proto.Security.TicketAndKeygenRemoteTicket(String remoteCluster, String localTicketAndKeyString) com.mapr.fs.proto.Security.TicketAndKeygetMapRCredentialsViaJwt(String cluster, String username, String ticketLocation, String jwtTokenPath, String refreshTokenPath) com.mapr.fs.proto.Security.TicketAndKeygetMapRCredentialsViaKerberos(Long desiredTicketDurInSecs) com.mapr.fs.proto.Security.TicketAndKeygetMapRCredentialsViaKerberos(String cluster, Long desiredTicketDurInSecs) com.mapr.fs.proto.Security.TicketAndKeygetMapRCredentialsViaPassword(String username, String password, Long desiredTicketDurInSecs) com.mapr.fs.proto.Security.TicketAndKeygetMapRCredentialsViaPassword(String cluster, String username, String password, Long desiredTicketDurInSecs, String ticketLocation) com.mapr.fs.proto.Security.TicketAndKeygetRemoteTicket(String remoteCluster, String ticketLocation) booleanhasGoodClusterKey(String clusterName) booleanhasGoodServerKey(String clusterName) booleanReturns true if the security is enabled for default clusterbooleanisSecurityEnabled(String cluster) Returns true if the security is enabled for specified clustervoidlogOut()voidLogout of the specified cluster.voidvoidquietAuthenticateIfNeeded(String cluster) voidquietAuthenticateIfNeeded(String cluster, com.mapr.fs.proto.Security.ServerKeyType keyToUse) com.mapr.fs.proto.Security.TicketAndKeyRenew the ticket for default cluster.com.mapr.fs.proto.Security.TicketAndKeyRenew the ticket for the specified cluster.voidsetCheckUGI(boolean b)
-
Field Details
-
SPNEGO_OID
- See Also:
-
NT_GSS_KRB5_PRINCIPAL
- See Also:
-
MAPR_CLIENT_KERBEROS
- See Also:
-
-
Constructor Details
-
MapRLoginHttpsClient
public MapRLoginHttpsClient()
-
-
Method Details
-
hasGoodServerKey
-
hasGoodClusterKey
-
quietAuthenticateIfNeeded
public void quietAuthenticateIfNeeded() -
quietAuthenticateIfNeeded
-
quietAuthenticateIfNeeded
public void quietAuthenticateIfNeeded(String cluster, com.mapr.fs.proto.Security.ServerKeyType keyToUse) -
authenticateIfNeeded
- Specified by:
authenticateIfNeededin interfaceMapRLoginClient- Throws:
MapRLoginException
-
authenticateIfNeeded
public com.mapr.fs.proto.Security.TicketAndKey authenticateIfNeeded(String cluster) throws MapRLoginException - Specified by:
authenticateIfNeededin interfaceMapRLoginClient- Throws:
NullPointerException- if theclusteris nullMapRLoginException
-
authenticateIfNeeded
public com.mapr.fs.proto.Security.TicketAndKey authenticateIfNeeded(String cluster, com.mapr.fs.proto.Security.ServerKeyType keyToUse) throws MapRLoginException - Throws:
MapRLoginException
-
isSecurityEnabled
Returns true if the security is enabled for default cluster- Specified by:
isSecurityEnabledin interfaceMapRLoginClient- Throws:
MapRLoginException
-
isSecurityEnabled
Returns true if the security is enabled for specified cluster- Specified by:
isSecurityEnabledin interfaceMapRLoginClient- Throws:
NullPointerException- if theclusteris null
-
getMapRCredentialsViaPassword
public com.mapr.fs.proto.Security.TicketAndKey getMapRCredentialsViaPassword(String username, String password, Long desiredTicketDurInSecs) throws MapRLoginException - Specified by:
getMapRCredentialsViaPasswordin interfaceMapRLoginClient- Throws:
MapRLoginException
-
getMapRCredentialsViaPassword
public com.mapr.fs.proto.Security.TicketAndKey getMapRCredentialsViaPassword(String cluster, String username, String password, Long desiredTicketDurInSecs, String ticketLocation) throws MapRLoginException - Specified by:
getMapRCredentialsViaPasswordin interfaceMapRLoginClient- Throws:
NullPointerException- if theclusteris nullMapRLoginException
-
getMapRCredentialsViaJwt
public com.mapr.fs.proto.Security.TicketAndKey getMapRCredentialsViaJwt(String cluster, String username, String ticketLocation, String jwtTokenPath, String refreshTokenPath) throws MapRLoginException - Specified by:
getMapRCredentialsViaJwtin interfaceMapRLoginClient- Throws:
MapRLoginException
-
getMapRCredentialsViaKerberos
public com.mapr.fs.proto.Security.TicketAndKey getMapRCredentialsViaKerberos(Long desiredTicketDurInSecs) throws MapRLoginException - Specified by:
getMapRCredentialsViaKerberosin interfaceMapRLoginClient- Throws:
MapRLoginException
-
setCheckUGI
public void setCheckUGI(boolean b) - Specified by:
setCheckUGIin interfaceMapRLoginClient
-
getMapRCredentialsViaKerberos
public com.mapr.fs.proto.Security.TicketAndKey getMapRCredentialsViaKerberos(String cluster, Long desiredTicketDurInSecs) throws MapRLoginException - Specified by:
getMapRCredentialsViaKerberosin interfaceMapRLoginClient- Throws:
NullPointerException- if theclusteris nullMapRLoginException
-
logOut
- Specified by:
logOutin interfaceMapRLoginClient- Throws:
MapRLoginException
-
logOut
Logout of the specified cluster.- Specified by:
logOutin interfaceMapRLoginClient- Throws:
NullPointerException- if theclusteris nullMapRLoginException
-
renew
public com.mapr.fs.proto.Security.TicketAndKey renew(Long desiredTicketDurInSecs) throws MapRLoginException Renew the ticket for default cluster.- Specified by:
renewin interfaceMapRLoginClient- Throws:
MapRLoginException
-
renew
public com.mapr.fs.proto.Security.TicketAndKey renew(String cluster, Long desiredTicketDurInSecs, String inTicketFile, String ticketLocation) throws MapRLoginException Renew the ticket for the specified cluster.- Specified by:
renewin interfaceMapRLoginClient- Throws:
NullPointerException- if theclusteris nullMapRLoginException
-
generateTicket
public com.mapr.fs.proto.Security.TicketAndKey generateTicket(GenTicketTypeRequest.TicketType ticketType, String targetUserName, String cluster, Long desiredTicketDurInSecs, Long renewalTicketDurInSecs, List<CLDBRpcCommonUtils.IpAddr> ips, List<Integer> uids, List<Integer> gids, String ticketFileLocation) throws MapRLoginException - Specified by:
generateTicketin interfaceMapRLoginClient- Throws:
MapRLoginException
-
getRemoteTicket
public com.mapr.fs.proto.Security.TicketAndKey getRemoteTicket(String remoteCluster, String ticketLocation) throws MapRLoginException - Specified by:
getRemoteTicketin interfaceMapRLoginClient- Throws:
MapRLoginException
-
genRemoteTicket
public com.mapr.fs.proto.Security.TicketAndKey genRemoteTicket(String remoteCluster, String localTicketAndKeyString) throws MapRLoginException - Specified by:
genRemoteTicketin interfaceMapRLoginClient- Throws:
MapRLoginException
-