/*
* 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.
*/
/**
* JGSS plugin for generic mechanisms provided through native GSS framework.
*
* @author Valerie Peng
*/
boolean initiate)
throws GSSException {
// If Subject is present but no native creds available
}
}
// Force permission check before returning the cred to caller
}
return result;
}
// Have to call setMech(Oid) explicitly before calling other
// methods. Otherwise, NPE may be thrown unexpectantly
}
}
throws GSSException {
try {
byte[] nameBytes =
} catch (UnsupportedEncodingException uee) {
// Shouldn't happen
}
}
throws GSSException {
}
int initLifetime,
int acceptLifetime,
int usage)
throws GSSException {
nname = (GSSNameElement)
// Force separate acqusition of cred element since
// MIT's impl does not correctly report NO_CRED error.
}
if (credElement == null) {
// No cred in the Subject
}
} else {
"Unknown usage mode requested");
}
}
return credElement;
}
int lifetime)
throws GSSException {
} else if (!(peer instanceof GSSNameElement)) {
peer = (GSSNameElement)
}
} else if (!(myCred instanceof GSSCredElement)) {
}
}
throws GSSException {
} else if (!(myCred instanceof GSSCredElement)) {
}
}
throws GSSException {
}
}
return SunNativeProvider.INSTANCE;
}
return cStub.inquireNamesForMech();
}
}