Package com.mapr.login.client
Interface MapRLoginClient
- All Known Implementing Classes:
MapRLoginHttpsClient
public interface MapRLoginClient
Author: smarella
-
Method Summary
Modifier and TypeMethodDescriptioncom.mapr.fs.proto.Security.TicketAndKeycom.mapr.fs.proto.Security.TicketAndKeyauthenticateIfNeeded(String cluster) 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 ticketLocation) 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 cluster, String ticketLocation) booleanbooleanisSecurityEnabled(String cluster) voidlogOut()voidcom.mapr.fs.proto.Security.TicketAndKeycom.mapr.fs.proto.Security.TicketAndKeyvoidsetCheckUGI(boolean checkUGI)
-
Method Details
-
getMapRCredentialsViaPassword
com.mapr.fs.proto.Security.TicketAndKey getMapRCredentialsViaPassword(String username, String password, Long desiredTicketDurInSecs) throws MapRLoginException - Throws:
MapRLoginException
-
getMapRCredentialsViaPassword
com.mapr.fs.proto.Security.TicketAndKey getMapRCredentialsViaPassword(String cluster, String username, String password, Long desiredTicketDurInSecs, String ticketLocation) throws MapRLoginException - Throws:
MapRLoginException
-
getMapRCredentialsViaJwt
com.mapr.fs.proto.Security.TicketAndKey getMapRCredentialsViaJwt(String cluster, String username, String ticketLocation, String jwtTokenPath, String refreshTokenPath) throws MapRLoginException - Throws:
MapRLoginException
-
getMapRCredentialsViaKerberos
com.mapr.fs.proto.Security.TicketAndKey getMapRCredentialsViaKerberos(Long desiredTicketDurInSecs) throws MapRLoginException - Throws:
MapRLoginException
-
getMapRCredentialsViaKerberos
com.mapr.fs.proto.Security.TicketAndKey getMapRCredentialsViaKerberos(String cluster, Long desiredTicketDurInSecs) throws MapRLoginException - Throws:
MapRLoginException
-
authenticateIfNeeded
- Throws:
MapRLoginException
-
authenticateIfNeeded
com.mapr.fs.proto.Security.TicketAndKey authenticateIfNeeded(String cluster) throws MapRLoginException - Throws:
MapRLoginException
-
setCheckUGI
void setCheckUGI(boolean checkUGI) -
isSecurityEnabled
- Throws:
MapRLoginException
-
isSecurityEnabled
- Throws:
MapRLoginException
-
logOut
- Throws:
MapRLoginException
-
logOut
- Throws:
MapRLoginException
-
renew
com.mapr.fs.proto.Security.TicketAndKey renew(Long desiredTicketDurInSecs) throws MapRLoginException - Throws:
MapRLoginException
-
renew
com.mapr.fs.proto.Security.TicketAndKey renew(String cluster, Long desiredTicketDurInSecs, String inTicketFile, String ticketLocation) throws MapRLoginException - Throws:
MapRLoginException
-
generateTicket
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 - Throws:
MapRLoginException
-
getRemoteTicket
com.mapr.fs.proto.Security.TicketAndKey getRemoteTicket(String cluster, String ticketLocation) throws MapRLoginException - Throws:
MapRLoginException
-
genRemoteTicket
com.mapr.fs.proto.Security.TicketAndKey genRemoteTicket(String remoteCluster, String ticketLocation) throws MapRLoginException - Throws:
MapRLoginException
-