summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/transport
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/gitblit/transport')
-rw-r--r--src/main/java/com/gitblit/transport/ssh/SshKey.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/transport/ssh/SshKey.java b/src/main/java/com/gitblit/transport/ssh/SshKey.java
index 9fd1005a..cfd7310e 100644
--- a/src/main/java/com/gitblit/transport/ssh/SshKey.java
+++ b/src/main/java/com/gitblit/transport/ssh/SshKey.java
@@ -81,6 +81,15 @@ public class SshKey implements Serializable {
return publicKey;
}
+ public void detachPublicKey()
+ {
+ if (rawData == null) {
+ // Make sure the raw data is available
+ getRawData();
+ }
+ publicKey = null;
+ }
+
public String getAlgorithm() {
return getPublicKey().getAlgorithm();
}