Update core/src/main/java/org/jclouds/crypto/Pems.java

removed unused method
This commit is contained in:
Adrian Cole 2013-01-01 20:35:52 -08:00
parent 3c5135dbe5
commit c948c0cf53
1 changed files with 1 additions and 5 deletions

View File

@ -397,11 +397,7 @@ public class Pems {
return pem(key instanceof RSAPrivateCrtKey ? encode(RSAPrivateCrtKey.class.cast(key)) : key.getEncoded(), marker); return pem(key instanceof RSAPrivateCrtKey ? encode(RSAPrivateCrtKey.class.cast(key)) : key.getEncoded(), marker);
} }
private static String pem(byte[] key, String marker) { private static String pem(byte[] encoded, String marker) {
return pem(key, marker, 64);
}
private static String pem(byte[] encoded, String marker, int length) {
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
builder.append(marker).append('\n'); builder.append(marker).append('\n');
builder.append(on('\n').join(fixedLength(64).split(base64().encode(encoded)))).append('\n'); builder.append(on('\n').join(fixedLength(64).split(base64().encode(encoded)))).append('\n');