/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Krb5 Mechanism plug in for JGSS
* This is the properties object required by the JGSS framework.
* All mechanism specific information is defined here.
*
* @author Mayank Upadhyay
*/
createOid("1.2.840.113554.1.2.2");
createOid("1.2.840.113554.1.2.2.1");
boolean initiate)
throws GSSException {
(initiate ?
Krb5InitCredential.class :
Krb5AcceptCredential.class));
// Force permission check before returning the cred to caller
if (initiate) {
} else {
}
}
return result;
}
}
throws GSSException {
}
throws GSSException {
// At this point, even an exported name is stripped down to safe
// bytes only
// XXX Use encoding here
}
int initLifetime, int acceptLifetime,
int usage) throws GSSException {
}
if (credElement == null) {
(Krb5NameElement) name);
} else
"Unknown usage mode requested");
}
return credElement;
}
try {
} catch (SecurityException e) {
if (DEBUG) {
"kerberos init credential" + e.getMessage());
}
throw e;
}
}
}
try {
} catch (SecurityException e) {
if (originalName == null) {
// Don't disclose the name of the principal
e = new SecurityException("No permission to acquire "
+ "Kerberos accept credential");
// Don't call e.initCause() with caught exception
}
throw e;
}
}
}
throws GSSException {
}
// XXX Convert myInitiatorCred to Krb5CredElement
if (myInitiatorCred == null) {
}
}
throws GSSException {
// XXX Convert myAcceptorCred to Krb5CredElement
if (myAcceptorCred == null) {
}
}
throws GSSException {
}
return GSS_KRB5_MECH_OID;
}
return PROVIDER;
}
// nameTypes is cloned in GSSManager.getNamesForMech
return nameTypes;
}
try {
} catch (GSSException e) {
// Should not happen!
}
return retVal;
}
}