mirror of https://github.com/apache/jclouds.git
Update core/src/main/java/org/jclouds/crypto/Pems.java
removed unused method
This commit is contained in:
parent
3c5135dbe5
commit
c948c0cf53
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue