equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
25 |
25 |
26 package com.sun.security.sasl.gsskerb; |
26 package com.sun.security.sasl.gsskerb; |
27 |
27 |
28 import java.io.IOException; |
28 import java.io.IOException; |
29 import java.util.Map; |
29 import java.util.Map; |
30 import java.util.logging.Logger; |
|
31 import java.util.logging.Level; |
30 import java.util.logging.Level; |
32 import javax.security.sasl.*; |
31 import javax.security.sasl.*; |
33 |
32 |
34 // JAAS |
33 // JAAS |
35 import javax.security.auth.callback.CallbackHandler; |
34 import javax.security.auth.callback.CallbackHandler; |
91 * Creates a SASL mechanism with client credentials that it needs |
90 * Creates a SASL mechanism with client credentials that it needs |
92 * to participate in GSS-API/Kerberos v5 authentication exchange |
91 * to participate in GSS-API/Kerberos v5 authentication exchange |
93 * with the server. |
92 * with the server. |
94 */ |
93 */ |
95 GssKrb5Client(String authzID, String protocol, String serverName, |
94 GssKrb5Client(String authzID, String protocol, String serverName, |
96 Map props, CallbackHandler cbh) throws SaslException { |
95 Map<String, ?> props, CallbackHandler cbh) throws SaslException { |
97 |
96 |
98 super(props, MY_CLASS_NAME); |
97 super(props, MY_CLASS_NAME); |
99 |
98 |
100 String service = protocol + "@" + serverName; |
99 String service = protocol + "@" + serverName; |
101 logger.log(Level.FINE, "KRB5CLNT01:Requesting service name: {0}", |
100 logger.log(Level.FINE, "KRB5CLNT01:Requesting service name: {0}", |