com.atlassian.jira.security.auth.trustedapps
Class KeyFactory

java.lang.Object
  extended by com.atlassian.jira.security.auth.trustedapps.KeyFactory

public class KeyFactory
extends Object

Utility for encoding and decoding PublicKeys. Handles IllegalKeys by returning dummy key instances.

Since:
v3.12

Nested Class Summary
static class KeyFactory.InvalidPrivateKey
          If there are problems creating a key, one of these will be returned instead.
static class KeyFactory.InvalidPublicKey
          If there are problems creating a key, one of these will be returned instead.
 
Method Summary
static com.atlassian.security.auth.trustedapps.EncryptionProvider getEncryptionProvider()
          The EncryptionProvider used to provide public and private key creation methods.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEncryptionProvider

public static com.atlassian.security.auth.trustedapps.EncryptionProvider getEncryptionProvider()
The EncryptionProvider used to provide public and private key creation methods. Hard-coded to return BouncyCastleEncryptionProvider, as that is currently what Seraph uses by default.

Returns:
an instance of BouncyCastleEncryptionProvider


Copyright © 2002-2012 Atlassian. All Rights Reserved.