com.atlassian.bamboo.security.trustedapplications
Class KeyUtils.InvalidPrivateKey

java.lang.Object
  extended by com.atlassian.bamboo.security.trustedapplications.KeyUtils.InvalidPrivateKey
All Implemented Interfaces:
java.io.Serializable, java.security.Key, java.security.PrivateKey
Enclosing class:
KeyUtils

public static class KeyUtils.InvalidPrivateKey
extends java.lang.Object
implements java.security.PrivateKey

If there are problems creating a key, one of these will be returned instead. Rather than returning the actual key, the toString() will return the causal exception.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface java.security.PrivateKey
serialVersionUID
 
Constructor Summary
KeyUtils.InvalidPrivateKey(java.lang.Exception cause)
           
 
Method Summary
 java.lang.String getAlgorithm()
           
 java.lang.Exception getCause()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat
 

Constructor Detail

KeyUtils.InvalidPrivateKey

public KeyUtils.InvalidPrivateKey(java.lang.Exception cause)
Method Detail

getAlgorithm

public java.lang.String getAlgorithm()
Specified by:
getAlgorithm in interface java.security.Key

getFormat

public java.lang.String getFormat()
Specified by:
getFormat in interface java.security.Key

getEncoded

public byte[] getEncoded()
Specified by:
getEncoded in interface java.security.Key

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getCause

public java.lang.Exception getCause()


Copyright © 2011 Atlassian. All Rights Reserved.