public class

KeyFactory

extends Object
java.lang.Object
   ↳ com.atlassian.jira.security.auth.trustedapps.KeyFactory

Class Overview

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

Summary

Nested Classes
class KeyFactory.InvalidPrivateKey If there are problems creating a key, one of these will be returned instead. 
class KeyFactory.InvalidPublicKey If there are problems creating a key, one of these will be returned instead. 
Public Methods
static EncryptionProvider getEncryptionProvider()
The EncryptionProvider used to provide public and private key creation methods.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static 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