blob: d13b919a72f0dff3ddda845053f587a4554566d1 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_66) on Fri Jan 15 14:33:42 CET 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>KeyUtils (Apache Mina SSHD :: Core 1.1.0 API)</title>
<meta name="date" content="2016-01-15">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="KeyUtils (Apache Mina SSHD :: Core 1.1.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/KeyUtils.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../org/apache/sshd/common/config/keys/IdentityUtils.html" title="class in org.apache.sshd.common.config.keys"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntry.html" title="class in org.apache.sshd.common.config.keys"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/sshd/common/config/keys/KeyUtils.html" target="_top">Frames</a></li>
<li><a href="KeyUtils.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.sshd.common.config.keys</div>
<h2 title="Class KeyUtils" class="title">Class KeyUtils</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.sshd.common.config.keys.KeyUtils</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public final class <span class="typeNameLabel">KeyUtils</span>
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">Utility class for keys</div>
<dl>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd><a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/sshd/common/digest/DigestFactory.html" title="interface in org.apache.sshd.common.digest">DigestFactory</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#DEFAULT_FINGERPRINT_DIGEST_FACTORY">DEFAULT_FINGERPRINT_DIGEST_FACTORY</a></span></code>
<div class="block">The default <a href="../../../../../../org/apache/sshd/common/Factory.html" title="interface in org.apache.sshd.common"><code>Factory</code></a> of <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest"><code>Digest</code></a>s initialized
as the value of <a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getDefaultFingerPrintFactory--"><code>getDefaultFingerPrintFactory()</code></a> if not
overridden by <a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#KEY_FINGERPRINT_FACTORY_PROP"><code>KEY_FINGERPRINT_FACTORY_PROP</code></a> or
<a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#setDefaultFingerPrintFactory-org.apache.sshd.common.digest.DigestFactory-"><code>setDefaultFingerPrintFactory(DigestFactory)</code></a></div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#KEY_FINGERPRINT_FACTORY_PROP">KEY_FINGERPRINT_FACTORY_PROP</a></span></code>
<div class="block">System property that can be used to control the default fingerprint factory used for keys.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/file/attribute/PosixFilePermission.html?is-external=true" title="class or interface in java.nio.file.attribute">PosixFilePermission</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#STRICTLY_PROHIBITED_FILE_PERMISSION">STRICTLY_PROHIBITED_FILE_PERMISSION</a></span></code>
<div class="block">The <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util"><code>Set</code></a> of <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/file/attribute/PosixFilePermission.html?is-external=true" title="class or interface in java.nio.file.attribute"><code>PosixFilePermission</code></a> <U>not</U> allowed if strict
permissions are enforced on key files</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/sshd/common/util/Pair.html" title="class in org.apache.sshd.common.util">Pair</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#checkFingerPrint-java.lang.String-org.apache.sshd.common.digest.Digest-java.security.PublicKey-">checkFingerPrint</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;expected,
<a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest">Digest</a>&nbsp;d,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;key)</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/sshd/common/util/Pair.html" title="class in org.apache.sshd.common.util">Pair</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#checkFingerPrint-java.lang.String-org.apache.sshd.common.Factory-java.security.PublicKey-">checkFingerPrint</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;expected,
<a href="../../../../../../org/apache/sshd/common/Factory.html" title="interface in org.apache.sshd.common">Factory</a>&lt;? extends <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest">Digest</a>&gt;&nbsp;f,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;key)</code>&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/sshd/common/util/Pair.html" title="class in org.apache.sshd.common.util">Pair</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#checkFingerPrint-java.lang.String-java.security.PublicKey-">checkFingerPrint</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;expected,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;key)</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security">KeyPair</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#cloneKeyPair-java.lang.String-java.security.KeyPair-">cloneKeyPair</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;keyType,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security">KeyPair</a>&nbsp;kp)</code>
<div class="block">Performs a deep-clone of the original <a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security"><code>KeyPair</code></a> - i.e., creates
<U>new</U> public/private keys that are clones of the original one</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#compareDSAKeys-java.security.interfaces.DSAPrivateKey-java.security.interfaces.DSAPrivateKey-">compareDSAKeys</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/DSAPrivateKey.html?is-external=true" title="class or interface in java.security.interfaces">DSAPrivateKey</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/DSAPrivateKey.html?is-external=true" title="class or interface in java.security.interfaces">DSAPrivateKey</a>&nbsp;k2)</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#compareDSAKeys-java.security.interfaces.DSAPublicKey-java.security.interfaces.DSAPublicKey-">compareDSAKeys</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/DSAPublicKey.html?is-external=true" title="class or interface in java.security.interfaces">DSAPublicKey</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/DSAPublicKey.html?is-external=true" title="class or interface in java.security.interfaces">DSAPublicKey</a>&nbsp;k2)</code>&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#compareDSAParams-java.security.interfaces.DSAParams-java.security.interfaces.DSAParams-">compareDSAParams</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/DSAParams.html?is-external=true" title="class or interface in java.security.interfaces">DSAParams</a>&nbsp;p1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/DSAParams.html?is-external=true" title="class or interface in java.security.interfaces">DSAParams</a>&nbsp;p2)</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#compareECKeys-java.security.interfaces.ECPrivateKey-java.security.interfaces.ECPrivateKey-">compareECKeys</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/ECPrivateKey.html?is-external=true" title="class or interface in java.security.interfaces">ECPrivateKey</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/ECPrivateKey.html?is-external=true" title="class or interface in java.security.interfaces">ECPrivateKey</a>&nbsp;k2)</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#compareECKeys-java.security.interfaces.ECPublicKey-java.security.interfaces.ECPublicKey-">compareECKeys</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/ECPublicKey.html?is-external=true" title="class or interface in java.security.interfaces">ECPublicKey</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/ECPublicKey.html?is-external=true" title="class or interface in java.security.interfaces">ECPublicKey</a>&nbsp;k2)</code>&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#compareECParams-java.security.spec.ECParameterSpec-java.security.spec.ECParameterSpec-">compareECParams</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/spec/ECParameterSpec.html?is-external=true" title="class or interface in java.security.spec">ECParameterSpec</a>&nbsp;s1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/spec/ECParameterSpec.html?is-external=true" title="class or interface in java.security.spec">ECParameterSpec</a>&nbsp;s2)</code>&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#compareKeyPairs-java.security.KeyPair-java.security.KeyPair-">compareKeyPairs</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security">KeyPair</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security">KeyPair</a>&nbsp;k2)</code>&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#compareKeys-java.security.PrivateKey-java.security.PrivateKey-">compareKeys</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PrivateKey.html?is-external=true" title="class or interface in java.security">PrivateKey</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PrivateKey.html?is-external=true" title="class or interface in java.security">PrivateKey</a>&nbsp;k2)</code>&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#compareKeys-java.security.PublicKey-java.security.PublicKey-">compareKeys</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;k2)</code>&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#compareRSAKeys-java.security.interfaces.RSAPrivateKey-java.security.interfaces.RSAPrivateKey-">compareRSAKeys</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/RSAPrivateKey.html?is-external=true" title="class or interface in java.security.interfaces">RSAPrivateKey</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/RSAPrivateKey.html?is-external=true" title="class or interface in java.security.interfaces">RSAPrivateKey</a>&nbsp;k2)</code>&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#compareRSAKeys-java.security.interfaces.RSAPublicKey-java.security.interfaces.RSAPublicKey-">compareRSAKeys</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/RSAPublicKey.html?is-external=true" title="class or interface in java.security.interfaces">RSAPublicKey</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/RSAPublicKey.html?is-external=true" title="class or interface in java.security.interfaces">RSAPublicKey</a>&nbsp;k2)</code>&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#findMatchingKey-java.security.PublicKey-java.util.Collection-">findMatchingKey</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;key,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;? extends <a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&gt;&nbsp;keySet)</code>&nbsp;</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#findMatchingKey-java.security.PublicKey-java.security.PublicKey...-">findMatchingKey</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;key,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>...&nbsp;keySet)</code>&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security">KeyPair</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#generateKeyPair-java.lang.String-int-">generateKeyPair</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;keyType,
int&nbsp;keySize)</code>&nbsp;</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/sshd/common/digest/DigestFactory.html" title="interface in org.apache.sshd.common.digest">DigestFactory</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getDefaultFingerPrintFactory--">getDefaultFingerPrintFactory</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getFingerPrint-org.apache.sshd.common.digest.Digest-java.security.PublicKey-">getFingerPrint</a></span>(<a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest">Digest</a>&nbsp;d,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;key)</code>&nbsp;</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getFingerPrint-org.apache.sshd.common.digest.Digest-java.lang.String-">getFingerPrint</a></span>(<a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest">Digest</a>&nbsp;d,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s)</code>&nbsp;</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getFingerPrint-org.apache.sshd.common.digest.Digest-java.lang.String-java.nio.charset.Charset-">getFingerPrint</a></span>(<a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest">Digest</a>&nbsp;d,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s,
<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a>&nbsp;charset)</code>&nbsp;</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getFingerPrint-org.apache.sshd.common.Factory-java.security.PublicKey-">getFingerPrint</a></span>(<a href="../../../../../../org/apache/sshd/common/Factory.html" title="interface in org.apache.sshd.common">Factory</a>&lt;? extends <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest">Digest</a>&gt;&nbsp;f,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;key)</code>&nbsp;</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getFingerPrint-org.apache.sshd.common.Factory-java.lang.String-">getFingerPrint</a></span>(<a href="../../../../../../org/apache/sshd/common/Factory.html" title="interface in org.apache.sshd.common">Factory</a>&lt;? extends <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest">Digest</a>&gt;&nbsp;f,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s)</code>&nbsp;</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getFingerPrint-org.apache.sshd.common.Factory-java.lang.String-java.nio.charset.Charset-">getFingerPrint</a></span>(<a href="../../../../../../org/apache/sshd/common/Factory.html" title="interface in org.apache.sshd.common">Factory</a>&lt;? extends <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest">Digest</a>&gt;&nbsp;f,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s,
<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a>&nbsp;charset)</code>&nbsp;</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getFingerPrint-java.security.PublicKey-">getFingerPrint</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;key)</code>&nbsp;</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getFingerPrint-java.lang.String-">getFingerPrint</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;password)</code>&nbsp;</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getFingerPrint-java.lang.String-java.nio.charset.Charset-">getFingerPrint</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;password,
<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a>&nbsp;charset)</code>&nbsp;</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getKeyType-java.security.Key-">getKeyType</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/Key.html?is-external=true" title="class or interface in java.security">Key</a>&nbsp;key)</code>&nbsp;</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getKeyType-java.security.KeyPair-">getKeyType</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security">KeyPair</a>&nbsp;kp)</code>&nbsp;</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntryDecoder.html" title="interface in org.apache.sshd.common.config.keys">PublicKeyEntryDecoder</a>&lt;?,?&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getPublicKeyEntryDecoder-java.lang.Class-">getPublicKeyEntryDecoder</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;keyType)</code>&nbsp;</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntryDecoder.html" title="interface in org.apache.sshd.common.config.keys">PublicKeyEntryDecoder</a>&lt;?,?&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getPublicKeyEntryDecoder-java.security.Key-">getPublicKeyEntryDecoder</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/Key.html?is-external=true" title="class or interface in java.security">Key</a>&nbsp;key)</code>&nbsp;</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntryDecoder.html" title="interface in org.apache.sshd.common.config.keys">PublicKeyEntryDecoder</a>&lt;?,?&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getPublicKeyEntryDecoder-java.security.KeyPair-">getPublicKeyEntryDecoder</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security">KeyPair</a>&nbsp;kp)</code>&nbsp;</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntryDecoder.html" title="interface in org.apache.sshd.common.config.keys">PublicKeyEntryDecoder</a>&lt;?,?&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getPublicKeyEntryDecoder-java.lang.String-">getPublicKeyEntryDecoder</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;keyType)</code>&nbsp;</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#registerPublicKeyEntryDecoder-org.apache.sshd.common.config.keys.PublicKeyEntryDecoder-">registerPublicKeyEntryDecoder</a></span>(<a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntryDecoder.html" title="interface in org.apache.sshd.common.config.keys">PublicKeyEntryDecoder</a>&lt;?,?&gt;&nbsp;decoder)</code>&nbsp;</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#setDefaultFingerPrintFactory-org.apache.sshd.common.digest.DigestFactory-">setDefaultFingerPrintFactory</a></span>(<a href="../../../../../../org/apache/sshd/common/digest/DigestFactory.html" title="interface in org.apache.sshd.common.digest">DigestFactory</a>&nbsp;f)</code>&nbsp;</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../../org/apache/sshd/common/util/Pair.html" title="class in org.apache.sshd.common.util">Pair</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#validateStrictKeyFilePermissions-java.nio.file.Path-java.nio.file.LinkOption...-">validateStrictKeyFilePermissions</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html?is-external=true" title="class or interface in java.nio.file">Path</a>&nbsp;path,
<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/file/LinkOption.html?is-external=true" title="class or interface in java.nio.file">LinkOption</a>...&nbsp;options)</code>
<div class="block">Checks if a path has strict permissions</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="STRICTLY_PROHIBITED_FILE_PERMISSION">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>STRICTLY_PROHIBITED_FILE_PERMISSION</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/file/attribute/PosixFilePermission.html?is-external=true" title="class or interface in java.nio.file.attribute">PosixFilePermission</a>&gt; STRICTLY_PROHIBITED_FILE_PERMISSION</pre>
<div class="block">The <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util"><code>Set</code></a> of <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/file/attribute/PosixFilePermission.html?is-external=true" title="class or interface in java.nio.file.attribute"><code>PosixFilePermission</code></a> <U>not</U> allowed if strict
permissions are enforced on key files</div>
</li>
</ul>
<a name="KEY_FINGERPRINT_FACTORY_PROP">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KEY_FINGERPRINT_FACTORY_PROP</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> KEY_FINGERPRINT_FACTORY_PROP</pre>
<div class="block">System property that can be used to control the default fingerprint factory used for keys.
If not set the <a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#DEFAULT_FINGERPRINT_DIGEST_FACTORY"><code>DEFAULT_FINGERPRINT_DIGEST_FACTORY</code></a> is used</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../constant-values.html#org.apache.sshd.common.config.keys.KeyUtils.KEY_FINGERPRINT_FACTORY_PROP">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="DEFAULT_FINGERPRINT_DIGEST_FACTORY">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DEFAULT_FINGERPRINT_DIGEST_FACTORY</h4>
<pre>public static final&nbsp;<a href="../../../../../../org/apache/sshd/common/digest/DigestFactory.html" title="interface in org.apache.sshd.common.digest">DigestFactory</a> DEFAULT_FINGERPRINT_DIGEST_FACTORY</pre>
<div class="block">The default <a href="../../../../../../org/apache/sshd/common/Factory.html" title="interface in org.apache.sshd.common"><code>Factory</code></a> of <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest"><code>Digest</code></a>s initialized
as the value of <a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getDefaultFingerPrintFactory--"><code>getDefaultFingerPrintFactory()</code></a> if not
overridden by <a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#KEY_FINGERPRINT_FACTORY_PROP"><code>KEY_FINGERPRINT_FACTORY_PROP</code></a> or
<a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#setDefaultFingerPrintFactory-org.apache.sshd.common.digest.DigestFactory-"><code>setDefaultFingerPrintFactory(DigestFactory)</code></a></div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="validateStrictKeyFilePermissions-java.nio.file.Path-java.nio.file.LinkOption...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateStrictKeyFilePermissions</h4>
<pre>public static&nbsp;<a href="../../../../../../org/apache/sshd/common/util/Pair.html" title="class in org.apache.sshd.common.util">Pair</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;validateStrictKeyFilePermissions(<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html?is-external=true" title="class or interface in java.nio.file">Path</a>&nbsp;path,
<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/file/LinkOption.html?is-external=true" title="class or interface in java.nio.file">LinkOption</a>...&nbsp;options)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block"><P>Checks if a path has strict permissions</P>
<UL>
<LI><P>
The path may not have <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/file/attribute/PosixFilePermission.html?is-external=true#OTHERS_EXECUTE" title="class or interface in java.nio.file.attribute"><code>PosixFilePermission.OTHERS_EXECUTE</code></a>
permission
</P></LI>
<LI><P>
(For <code>Unix</code>) The path may not have group or others permissions
</P></LI>
<LI><P>
(For <code>Unix</code>) If the path is a file, then its folder may not have
group or others permissions
</P></LI>
<LI><P>
The path must be owned by current user.
</P></LI>
<LI><P>
(For <code>Unix</code>) The path may be owned by root.
</P></LI>
<LI><P>
(For <code>Unix</code>) If the path is a file, then its folder must also
have valid owner.
</P></LI>
</UL></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>path</code> - The <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html?is-external=true" title="class or interface in java.nio.file"><code>Path</code></a> to be checked - ignored if <code>null</code>
or does not exist</dd>
<dd><code>options</code> - The <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/file/LinkOption.html?is-external=true" title="class or interface in java.nio.file"><code>LinkOption</code></a>s to use to query the file's permissions</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The violated permission as <a href="../../../../../../org/apache/sshd/common/util/Pair.html" title="class in org.apache.sshd.common.util"><code>Pair</code></a> first is a message second is
offending object <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/file/attribute/PosixFilePermission.html?is-external=true" title="class or interface in java.nio.file.attribute"><code>PosixFilePermission</code></a> or <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a> for owner - <code>null</code> if
no violations detected</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If failed to retrieve the permissions</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#STRICTLY_PROHIBITED_FILE_PERMISSION"><code>STRICTLY_PROHIBITED_FILE_PERMISSION</code></a></dd>
</dl>
</li>
</ul>
<a name="generateKeyPair-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>generateKeyPair</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security">KeyPair</a>&nbsp;generateKeyPair(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;keyType,
int&nbsp;keySize)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/security/GeneralSecurityException.html?is-external=true" title="class or interface in java.security">GeneralSecurityException</a></pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>keyType</code> - The key type - <code>OpenSSH</code> name - e.g., <code>ssh-rsa, ssh-dss</code></dd>
<dd><code>keySize</code> - The key size (in bits)</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A <a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security"><code>KeyPair</code></a> of the specified type and size</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/security/GeneralSecurityException.html?is-external=true" title="class or interface in java.security">GeneralSecurityException</a></code> - If failed to generate the key pair</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getPublicKeyEntryDecoder-java.lang.String-"><code>getPublicKeyEntryDecoder(String)</code></a>,
<a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntryDecoder.html#generateKeyPair-int-"><code>PublicKeyEntryDecoder.generateKeyPair(int)</code></a></dd>
</dl>
</li>
</ul>
<a name="cloneKeyPair-java.lang.String-java.security.KeyPair-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cloneKeyPair</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security">KeyPair</a>&nbsp;cloneKeyPair(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;keyType,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security">KeyPair</a>&nbsp;kp)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/security/GeneralSecurityException.html?is-external=true" title="class or interface in java.security">GeneralSecurityException</a></pre>
<div class="block">Performs a deep-clone of the original <a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security"><code>KeyPair</code></a> - i.e., creates
<U>new</U> public/private keys that are clones of the original one</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>keyType</code> - The key type - <code>OpenSSH</code> name - e.g., <code>ssh-rsa, ssh-dss</code></dd>
<dd><code>kp</code> - The <a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security"><code>KeyPair</code></a> to clone - ignored if <code>null</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The cloned instance</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/security/GeneralSecurityException.html?is-external=true" title="class or interface in java.security">GeneralSecurityException</a></code> - If failed to clone the pair</dd>
</dl>
</li>
</ul>
<a name="registerPublicKeyEntryDecoder-org.apache.sshd.common.config.keys.PublicKeyEntryDecoder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>registerPublicKeyEntryDecoder</h4>
<pre>public static&nbsp;void&nbsp;registerPublicKeyEntryDecoder(<a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntryDecoder.html" title="interface in org.apache.sshd.common.config.keys">PublicKeyEntryDecoder</a>&lt;?,?&gt;&nbsp;decoder)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>decoder</code> - The decoder to register</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if no decoder or not key type or no
supported names for the decoder</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntryDecoder.html#getPublicKeyType--"><code>PublicKeyEntryDecoder.getPublicKeyType()</code></a>,
<a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntryDecoder.html#getSupportedTypeNames--"><code>PublicKeyEntryDecoder.getSupportedTypeNames()</code></a></dd>
</dl>
</li>
</ul>
<a name="getPublicKeyEntryDecoder-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPublicKeyEntryDecoder</h4>
<pre>public static&nbsp;<a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntryDecoder.html" title="interface in org.apache.sshd.common.config.keys">PublicKeyEntryDecoder</a>&lt;?,?&gt;&nbsp;getPublicKeyEntryDecoder(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;keyType)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>keyType</code> - The <code>OpenSSH</code> key type string - e.g., <code>ssh-rsa, ssh-dss</code>
- ignored if <code>null</code>/empty</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The registered <a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntryDecoder.html" title="interface in org.apache.sshd.common.config.keys"><code>PublicKeyEntryDecoder</code></a> or {code null} if not found</dd>
</dl>
</li>
</ul>
<a name="getPublicKeyEntryDecoder-java.security.KeyPair-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPublicKeyEntryDecoder</h4>
<pre>public static&nbsp;<a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntryDecoder.html" title="interface in org.apache.sshd.common.config.keys">PublicKeyEntryDecoder</a>&lt;?,?&gt;&nbsp;getPublicKeyEntryDecoder(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security">KeyPair</a>&nbsp;kp)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>kp</code> - The <a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security"><code>KeyPair</code></a> to examine - ignored if <code>null</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The matching <a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntryDecoder.html" title="interface in org.apache.sshd.common.config.keys"><code>PublicKeyEntryDecoder</code></a> provided <U>both</U>
the public and private keys have the same decoder - <code>null</code> if no
match found</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getPublicKeyEntryDecoder-java.security.Key-"><code>getPublicKeyEntryDecoder(Key)</code></a></dd>
</dl>
</li>
</ul>
<a name="getPublicKeyEntryDecoder-java.security.Key-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPublicKeyEntryDecoder</h4>
<pre>public static&nbsp;<a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntryDecoder.html" title="interface in org.apache.sshd.common.config.keys">PublicKeyEntryDecoder</a>&lt;?,?&gt;&nbsp;getPublicKeyEntryDecoder(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/Key.html?is-external=true" title="class or interface in java.security">Key</a>&nbsp;key)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - The <a href="http://docs.oracle.com/javase/7/docs/api/java/security/Key.html?is-external=true" title="class or interface in java.security"><code>Key</code></a> (public or private) - ignored if <code>null</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The registered <a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntryDecoder.html" title="interface in org.apache.sshd.common.config.keys"><code>PublicKeyEntryDecoder</code></a> for this key or {code null} if no match found</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getPublicKeyEntryDecoder-java.lang.Class-"><code>getPublicKeyEntryDecoder(Class)</code></a></dd>
</dl>
</li>
</ul>
<a name="getPublicKeyEntryDecoder-java.lang.Class-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPublicKeyEntryDecoder</h4>
<pre>public static&nbsp;<a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntryDecoder.html" title="interface in org.apache.sshd.common.config.keys">PublicKeyEntryDecoder</a>&lt;?,?&gt;&nbsp;getPublicKeyEntryDecoder(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;keyType)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>keyType</code> - The key <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang"><code>Class</code></a> - ignored if <code>null</code> or not a <a href="http://docs.oracle.com/javase/7/docs/api/java/security/Key.html?is-external=true" title="class or interface in java.security"><code>Key</code></a>
compatible type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The registered <a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntryDecoder.html" title="interface in org.apache.sshd.common.config.keys"><code>PublicKeyEntryDecoder</code></a> or {code null} if no match found</dd>
</dl>
</li>
</ul>
<a name="getDefaultFingerPrintFactory--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDefaultFingerPrintFactory</h4>
<pre>public static&nbsp;<a href="../../../../../../org/apache/sshd/common/digest/DigestFactory.html" title="interface in org.apache.sshd.common.digest">DigestFactory</a>&nbsp;getDefaultFingerPrintFactory()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The default <a href="../../../../../../org/apache/sshd/common/digest/DigestFactory.html" title="interface in org.apache.sshd.common.digest"><code>DigestFactory</code></a>
by the <a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getFingerPrint-java.security.PublicKey-"><code>getFingerPrint(PublicKey)</code></a> and <a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getFingerPrint-java.lang.String-"><code>getFingerPrint(String)</code></a>
methods</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#KEY_FINGERPRINT_FACTORY_PROP"><code>KEY_FINGERPRINT_FACTORY_PROP</code></a>,
<a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#setDefaultFingerPrintFactory-org.apache.sshd.common.digest.DigestFactory-"><code>setDefaultFingerPrintFactory(DigestFactory)</code></a></dd>
</dl>
</li>
</ul>
<a name="setDefaultFingerPrintFactory-org.apache.sshd.common.digest.DigestFactory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDefaultFingerPrintFactory</h4>
<pre>public static&nbsp;void&nbsp;setDefaultFingerPrintFactory(<a href="../../../../../../org/apache/sshd/common/digest/DigestFactory.html" title="interface in org.apache.sshd.common.digest">DigestFactory</a>&nbsp;f)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>f</code> - The <a href="../../../../../../org/apache/sshd/common/digest/DigestFactory.html" title="interface in org.apache.sshd.common.digest"><code>DigestFactory</code></a> of <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest"><code>Digest</code></a>s to be used - may
not be <code>null</code></dd>
</dl>
</li>
</ul>
<a name="getFingerPrint-java.security.PublicKey-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFingerPrint</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getFingerPrint(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;key)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - the public key - ignored if <code>null</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the fingerprint or <code>null</code> if no key.
<B>Note:</B> if exception encountered then returns the exception's simple class name</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getFingerPrint-org.apache.sshd.common.Factory-java.security.PublicKey-"><code>getFingerPrint(Factory, PublicKey)</code></a></dd>
</dl>
</li>
</ul>
<a name="getFingerPrint-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFingerPrint</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getFingerPrint(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;password)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>password</code> - The <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a> to digest - ignored if <code>null</code>/empty,
otherwise its UTF-8 representation is used as input for the fingerprint</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The fingerprint - <code>null</code> if <code>null</code>/empty input.
<B>Note:</B> if exception encountered then returns the exception's simple class name</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getFingerPrint-java.lang.String-java.nio.charset.Charset-"><code>getFingerPrint(String, Charset)</code></a></dd>
</dl>
</li>
</ul>
<a name="getFingerPrint-java.lang.String-java.nio.charset.Charset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFingerPrint</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getFingerPrint(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;password,
<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a>&nbsp;charset)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>password</code> - The <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a> to digest - ignored if <code>null</code>/empty</dd>
<dd><code>charset</code> - The <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset"><code>Charset</code></a> to use in order to convert the
string to its byte representation to use as input for the fingerprint</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The fingerprint - <code>null</code> if <code>null</code>/empty input.
<B>Note:</B> if exception encountered then returns the exception's simple class name</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getFingerPrint-org.apache.sshd.common.Factory-java.lang.String-java.nio.charset.Charset-"><code>getFingerPrint(Factory, String, Charset)</code></a>,
<a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getDefaultFingerPrintFactory--"><code>getDefaultFingerPrintFactory()</code></a></dd>
</dl>
</li>
</ul>
<a name="getFingerPrint-org.apache.sshd.common.Factory-java.security.PublicKey-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFingerPrint</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getFingerPrint(<a href="../../../../../../org/apache/sshd/common/Factory.html" title="interface in org.apache.sshd.common">Factory</a>&lt;? extends <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest">Digest</a>&gt;&nbsp;f,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;key)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>f</code> - The <a href="../../../../../../org/apache/sshd/common/Factory.html" title="interface in org.apache.sshd.common"><code>Factory</code></a> to create the <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest"><code>Digest</code></a> to use</dd>
<dd><code>key</code> - the public key - ignored if <code>null</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the fingerprint or <code>null</code> if no key.
<B>Note:</B> if exception encountered then returns the exception's simple class name</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getFingerPrint-org.apache.sshd.common.digest.Digest-java.security.PublicKey-"><code>getFingerPrint(Digest, PublicKey)</code></a></dd>
</dl>
</li>
</ul>
<a name="getFingerPrint-org.apache.sshd.common.digest.Digest-java.security.PublicKey-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFingerPrint</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getFingerPrint(<a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest">Digest</a>&nbsp;d,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;key)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>d</code> - The <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest"><code>Digest</code></a> to use</dd>
<dd><code>key</code> - the public key - ignored if <code>null</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the fingerprint or <code>null</code> if no key.
<B>Note:</B> if exception encountered then returns the exception's simple class name</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/digest/DigestUtils.html#getFingerPrint-org.apache.sshd.common.digest.Digest-byte:A-int-int-"><code>DigestUtils.getFingerPrint(Digest, byte[], int, int)</code></a></dd>
</dl>
</li>
</ul>
<a name="getFingerPrint-org.apache.sshd.common.Factory-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFingerPrint</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getFingerPrint(<a href="../../../../../../org/apache/sshd/common/Factory.html" title="interface in org.apache.sshd.common">Factory</a>&lt;? extends <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest">Digest</a>&gt;&nbsp;f,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>f</code> - The <a href="../../../../../../org/apache/sshd/common/Factory.html" title="interface in org.apache.sshd.common"><code>Factory</code></a> to create the <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest"><code>Digest</code></a> to use</dd>
<dd><code>s</code> - The <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a> to digest - ignored if <code>null</code>/empty,
otherwise its UTF-8 representation is used as input for the fingerprint</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The fingerprint - <code>null</code> if <code>null</code>/empty input.
<B>Note:</B> if exception encountered then returns the exception's simple class name</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getFingerPrint-org.apache.sshd.common.digest.Digest-java.lang.String-java.nio.charset.Charset-"><code>getFingerPrint(Digest, String, Charset)</code></a></dd>
</dl>
</li>
</ul>
<a name="getFingerPrint-org.apache.sshd.common.Factory-java.lang.String-java.nio.charset.Charset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFingerPrint</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getFingerPrint(<a href="../../../../../../org/apache/sshd/common/Factory.html" title="interface in org.apache.sshd.common">Factory</a>&lt;? extends <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest">Digest</a>&gt;&nbsp;f,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s,
<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a>&nbsp;charset)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>f</code> - The <a href="../../../../../../org/apache/sshd/common/Factory.html" title="interface in org.apache.sshd.common"><code>Factory</code></a> to create the <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest"><code>Digest</code></a> to use</dd>
<dd><code>s</code> - The <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a> to digest - ignored if <code>null</code>/empty</dd>
<dd><code>charset</code> - The <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset"><code>Charset</code></a> to use in order to convert the
string to its byte representation to use as input for the fingerprint</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The fingerprint - <code>null</code> if <code>null</code>/empty input
<B>Note:</B> if exception encountered then returns the exception's simple class name</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/digest/DigestUtils.html#getFingerPrint-org.apache.sshd.common.digest.Digest-java.lang.String-java.nio.charset.Charset-"><code>DigestUtils.getFingerPrint(Digest, String, Charset)</code></a></dd>
</dl>
</li>
</ul>
<a name="getFingerPrint-org.apache.sshd.common.digest.Digest-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFingerPrint</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getFingerPrint(<a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest">Digest</a>&nbsp;d,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>d</code> - The <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest"><code>Digest</code></a> to use</dd>
<dd><code>s</code> - The <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a> to digest - ignored if <code>null</code>/empty,
otherwise its UTF-8 representation is used as input for the fingerprint</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The fingerprint - <code>null</code> if <code>null</code>/empty input.
<B>Note:</B> if exception encountered then returns the exception's simple class name</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/digest/DigestUtils.html#getFingerPrint-org.apache.sshd.common.digest.Digest-java.lang.String-java.nio.charset.Charset-"><code>DigestUtils.getFingerPrint(Digest, String, Charset)</code></a></dd>
</dl>
</li>
</ul>
<a name="getFingerPrint-org.apache.sshd.common.digest.Digest-java.lang.String-java.nio.charset.Charset-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFingerPrint</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getFingerPrint(<a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest">Digest</a>&nbsp;d,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;s,
<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a>&nbsp;charset)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>d</code> - The <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest"><code>Digest</code></a> to use to calculate the fingerprint</dd>
<dd><code>s</code> - The string to digest - ignored if <code>null</code>/empty</dd>
<dd><code>charset</code> - The <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset"><code>Charset</code></a> to use in order to convert the
string to its byte representation to use as input for the fingerprint</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The fingerprint - <code>null</code> if <code>null</code>/empty input.
<B>Note:</B> if exception encountered then returns the exception's simple class name</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/digest/DigestUtils.html#getFingerPrint-org.apache.sshd.common.digest.Digest-java.lang.String-java.nio.charset.Charset-"><code>DigestUtils.getFingerPrint(Digest, String, Charset)</code></a></dd>
</dl>
</li>
</ul>
<a name="checkFingerPrint-java.lang.String-java.security.PublicKey-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkFingerPrint</h4>
<pre>public static&nbsp;<a href="../../../../../../org/apache/sshd/common/util/Pair.html" title="class in org.apache.sshd.common.util">Pair</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;checkFingerPrint(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;expected,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;key)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>expected</code> - The expected fingerprint if <code>null</code> or empty then returns a failure
with the default fingerprint.</dd>
<dd><code>key</code> - the <a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security"><code>PublicKey</code></a> - if <code>null</code> then returns null.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Pair<Boolean, String> - first is success indicator, second is actual fingerprint,
<code>null</code> if no key.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getDefaultFingerPrintFactory--"><code>getDefaultFingerPrintFactory()</code></a>,
<a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#checkFingerPrint-java.lang.String-org.apache.sshd.common.Factory-java.security.PublicKey-"><code>checkFingerPrint(String, Factory, PublicKey)</code></a></dd>
</dl>
</li>
</ul>
<a name="checkFingerPrint-java.lang.String-org.apache.sshd.common.Factory-java.security.PublicKey-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkFingerPrint</h4>
<pre>public static&nbsp;<a href="../../../../../../org/apache/sshd/common/util/Pair.html" title="class in org.apache.sshd.common.util">Pair</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;checkFingerPrint(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;expected,
<a href="../../../../../../org/apache/sshd/common/Factory.html" title="interface in org.apache.sshd.common">Factory</a>&lt;? extends <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest">Digest</a>&gt;&nbsp;f,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;key)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>expected</code> - The expected fingerprint if <code>null</code> or empty then returns a failure
with the default fingerprint.</dd>
<dd><code>f</code> - The <a href="../../../../../../org/apache/sshd/common/Factory.html" title="interface in org.apache.sshd.common"><code>Factory</code></a> to be used to generate the default <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest"><code>Digest</code></a> for the key</dd>
<dd><code>key</code> - the <a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security"><code>PublicKey</code></a> - if <code>null</code> then returns null.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Pair<Boolean, String> - first is success indicator, second is actual fingerprint,
<code>null</code> if no key.</dd>
</dl>
</li>
</ul>
<a name="checkFingerPrint-java.lang.String-org.apache.sshd.common.digest.Digest-java.security.PublicKey-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkFingerPrint</h4>
<pre>public static&nbsp;<a href="../../../../../../org/apache/sshd/common/util/Pair.html" title="class in org.apache.sshd.common.util">Pair</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;checkFingerPrint(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;expected,
<a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest">Digest</a>&nbsp;d,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;key)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>expected</code> - The expected fingerprint if <code>null</code> or empty then returns a failure
with the default fingerprint.</dd>
<dd><code>d</code> - The <a href="../../../../../../org/apache/sshd/common/digest/Digest.html" title="interface in org.apache.sshd.common.digest"><code>Digest</code></a> to be used to generate the default fingerprint for the key</dd>
<dd><code>key</code> - the <a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security"><code>PublicKey</code></a> - if <code>null</code> then returns null.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Pair<Boolean, String> - first is success indicator, second is actual fingerprint,
<code>null</code> if no key.</dd>
</dl>
</li>
</ul>
<a name="getKeyType-java.security.KeyPair-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKeyType</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getKeyType(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security">KeyPair</a>&nbsp;kp)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>kp</code> - a key pair - ignored if <code>null</code>. If the private
key is non-<code>null</code> then it is used to determine the type,
otherwise the public one is used.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the key type or <code>null</code> if cannot determine it</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#getKeyType-java.security.Key-"><code>getKeyType(Key)</code></a></dd>
</dl>
</li>
</ul>
<a name="getKeyType-java.security.Key-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKeyType</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getKeyType(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/Key.html?is-external=true" title="class or interface in java.security">Key</a>&nbsp;key)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - a public or private key</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the key type or <code>null</code> if cannot determine it</dd>
</dl>
</li>
</ul>
<a name="findMatchingKey-java.security.PublicKey-java.security.PublicKey...-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>findMatchingKey</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;findMatchingKey(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;key,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>...&nbsp;keySet)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - The <a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security"><code>PublicKey</code></a> to be checked - ignored if <code>null</code></dd>
<dd><code>keySet</code> - The keys to be searched - ignored if <code>null</code>/empty</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The matching <a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security"><code>PublicKey</code></a> from the keys or <code>null</code> if
no match found</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#compareKeys-java.security.PublicKey-java.security.PublicKey-"><code>compareKeys(PublicKey, PublicKey)</code></a></dd>
</dl>
</li>
</ul>
<a name="findMatchingKey-java.security.PublicKey-java.util.Collection-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>findMatchingKey</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;findMatchingKey(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;key,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;? extends <a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&gt;&nbsp;keySet)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - The <a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security"><code>PublicKey</code></a> to be checked - ignored if <code>null</code></dd>
<dd><code>keySet</code> - The keys to be searched - ignored if <code>null</code>/empty</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The matching <a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security"><code>PublicKey</code></a> from the keys or <code>null</code> if
no match found</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/sshd/common/config/keys/KeyUtils.html#compareKeys-java.security.PublicKey-java.security.PublicKey-"><code>compareKeys(PublicKey, PublicKey)</code></a></dd>
</dl>
</li>
</ul>
<a name="compareKeyPairs-java.security.KeyPair-java.security.KeyPair-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareKeyPairs</h4>
<pre>public static&nbsp;boolean&nbsp;compareKeyPairs(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security">KeyPair</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/KeyPair.html?is-external=true" title="class or interface in java.security">KeyPair</a>&nbsp;k2)</pre>
</li>
</ul>
<a name="compareKeys-java.security.PrivateKey-java.security.PrivateKey-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareKeys</h4>
<pre>public static&nbsp;boolean&nbsp;compareKeys(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PrivateKey.html?is-external=true" title="class or interface in java.security">PrivateKey</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PrivateKey.html?is-external=true" title="class or interface in java.security">PrivateKey</a>&nbsp;k2)</pre>
</li>
</ul>
<a name="compareRSAKeys-java.security.interfaces.RSAPrivateKey-java.security.interfaces.RSAPrivateKey-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareRSAKeys</h4>
<pre>public static&nbsp;boolean&nbsp;compareRSAKeys(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/RSAPrivateKey.html?is-external=true" title="class or interface in java.security.interfaces">RSAPrivateKey</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/RSAPrivateKey.html?is-external=true" title="class or interface in java.security.interfaces">RSAPrivateKey</a>&nbsp;k2)</pre>
</li>
</ul>
<a name="compareDSAKeys-java.security.interfaces.DSAPrivateKey-java.security.interfaces.DSAPrivateKey-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareDSAKeys</h4>
<pre>public static&nbsp;boolean&nbsp;compareDSAKeys(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/DSAPrivateKey.html?is-external=true" title="class or interface in java.security.interfaces">DSAPrivateKey</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/DSAPrivateKey.html?is-external=true" title="class or interface in java.security.interfaces">DSAPrivateKey</a>&nbsp;k2)</pre>
</li>
</ul>
<a name="compareECKeys-java.security.interfaces.ECPrivateKey-java.security.interfaces.ECPrivateKey-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareECKeys</h4>
<pre>public static&nbsp;boolean&nbsp;compareECKeys(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/ECPrivateKey.html?is-external=true" title="class or interface in java.security.interfaces">ECPrivateKey</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/ECPrivateKey.html?is-external=true" title="class or interface in java.security.interfaces">ECPrivateKey</a>&nbsp;k2)</pre>
</li>
</ul>
<a name="compareKeys-java.security.PublicKey-java.security.PublicKey-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareKeys</h4>
<pre>public static&nbsp;boolean&nbsp;compareKeys(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/PublicKey.html?is-external=true" title="class or interface in java.security">PublicKey</a>&nbsp;k2)</pre>
</li>
</ul>
<a name="compareRSAKeys-java.security.interfaces.RSAPublicKey-java.security.interfaces.RSAPublicKey-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareRSAKeys</h4>
<pre>public static&nbsp;boolean&nbsp;compareRSAKeys(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/RSAPublicKey.html?is-external=true" title="class or interface in java.security.interfaces">RSAPublicKey</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/RSAPublicKey.html?is-external=true" title="class or interface in java.security.interfaces">RSAPublicKey</a>&nbsp;k2)</pre>
</li>
</ul>
<a name="compareDSAKeys-java.security.interfaces.DSAPublicKey-java.security.interfaces.DSAPublicKey-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareDSAKeys</h4>
<pre>public static&nbsp;boolean&nbsp;compareDSAKeys(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/DSAPublicKey.html?is-external=true" title="class or interface in java.security.interfaces">DSAPublicKey</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/DSAPublicKey.html?is-external=true" title="class or interface in java.security.interfaces">DSAPublicKey</a>&nbsp;k2)</pre>
</li>
</ul>
<a name="compareDSAParams-java.security.interfaces.DSAParams-java.security.interfaces.DSAParams-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareDSAParams</h4>
<pre>public static&nbsp;boolean&nbsp;compareDSAParams(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/DSAParams.html?is-external=true" title="class or interface in java.security.interfaces">DSAParams</a>&nbsp;p1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/DSAParams.html?is-external=true" title="class or interface in java.security.interfaces">DSAParams</a>&nbsp;p2)</pre>
</li>
</ul>
<a name="compareECKeys-java.security.interfaces.ECPublicKey-java.security.interfaces.ECPublicKey-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compareECKeys</h4>
<pre>public static&nbsp;boolean&nbsp;compareECKeys(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/ECPublicKey.html?is-external=true" title="class or interface in java.security.interfaces">ECPublicKey</a>&nbsp;k1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/interfaces/ECPublicKey.html?is-external=true" title="class or interface in java.security.interfaces">ECPublicKey</a>&nbsp;k2)</pre>
</li>
</ul>
<a name="compareECParams-java.security.spec.ECParameterSpec-java.security.spec.ECParameterSpec-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>compareECParams</h4>
<pre>public static&nbsp;boolean&nbsp;compareECParams(<a href="http://docs.oracle.com/javase/7/docs/api/java/security/spec/ECParameterSpec.html?is-external=true" title="class or interface in java.security.spec">ECParameterSpec</a>&nbsp;s1,
<a href="http://docs.oracle.com/javase/7/docs/api/java/security/spec/ECParameterSpec.html?is-external=true" title="class or interface in java.security.spec">ECParameterSpec</a>&nbsp;s2)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/KeyUtils.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../org/apache/sshd/common/config/keys/IdentityUtils.html" title="class in org.apache.sshd.common.config.keys"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../org/apache/sshd/common/config/keys/PublicKeyEntry.html" title="class in org.apache.sshd.common.config.keys"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/sshd/common/config/keys/KeyUtils.html" target="_top">Frames</a></li>
<li><a href="KeyUtils.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2008&#x2013;2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>