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);
|
||||
}
|
||||
|
||||
private static String pem(byte[] key, String marker) {
|
||||
return pem(key, marker, 64);
|
||||
}
|
||||
|
||||
private static String pem(byte[] encoded, String marker, int length) {
|
||||
private static String pem(byte[] encoded, String marker) {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append(marker).append('\n');
|
||||
builder.append(on('\n').join(fixedLength(64).split(base64().encode(encoded)))).append('\n');
|
||||
|
|
Loading…
Reference in New Issue