public static AuthToken kerberos ( String base64EncodedTicket ) { Objects . requireNonNull ( base64EncodedTicket , "Ticket can't be null" ) ; Map < String , Value > map = newHashMapWithSize ( 3 ) ; map . put ( SCHEME_KEY , value ( "kerberos" ) ) ; map . put ( PRINCIPAL_KEY , value ( "" ) ) ; // This empty string is required for backwards compatibility. map . put ( CREDENTIALS_KEY , value ( base64EncodedTicket ) ) ; return new InternalAuthToken ( map ) ; }
The kerberos authentication scheme using a base64 encoded ticket