@@ -65,6 +65,19 @@ public static AuthToken basic( String username, String password, String realm )
65
65
"realm" , realm ).asMap ( Values .ofValue () ) );
66
66
}
67
67
68
+ /**
69
+ * The kerberos authentication scheme, using a base64 encoded ticket
70
+ * @param base64EncodedTicket a base64 encoded service ticket
71
+ * @return an authentication token that can be used to connect to Neo4j
72
+ * @see GraphDatabase#driver(String, AuthToken)
73
+ * @since 1.3
74
+ */
75
+ public static AuthToken kerberos ( String base64EncodedTicket )
76
+ {
77
+ return new InternalAuthToken ( parameters (
78
+ "scheme" , "kerberos" ,
79
+ "credentials" , base64EncodedTicket ).asMap ( Values .ofValue () ) );
80
+ }
68
81
69
82
/**
70
83
* A custom authentication token used for doing custom authentication on the server side.
@@ -73,7 +86,7 @@ public static AuthToken basic( String username, String password, String realm )
73
86
* @param realm this is the "realm:, specifying the authentication provider.
74
87
* @param scheme this it the authentication scheme, specifying what kind of authentication that should be used
75
88
* @return an authentication token that can be used to connect to Neo4j
76
- * * @see GraphDatabase#driver(String, AuthToken)
89
+ * @see GraphDatabase#driver(String, AuthToken)
77
90
*/
78
91
public static AuthToken custom ( String principal , String credentials , String realm , String scheme )
79
92
{
@@ -92,7 +105,7 @@ public static AuthToken custom( String principal, String credentials, String rea
92
105
* @param scheme this it the authentication scheme, specifying what kind of authentication that shoud be used
93
106
* @param parameters extra parameters to be sent along the authentication provider.
94
107
* @return an authentication token that can be used to connect to Neo4j
95
- * * @see GraphDatabase#driver(String, AuthToken)
108
+ * @see GraphDatabase#driver(String, AuthToken)
96
109
*/
97
110
public static AuthToken custom ( String principal , String credentials , String realm , String scheme , Map <String , Object > parameters )
98
111
{
0 commit comments