com.atlassian.security.auth.trustedapps
Class DefaultEncryptedCertificate

java.lang.Object
  extended bycom.atlassian.security.auth.trustedapps.DefaultEncryptedCertificate
All Implemented Interfaces:
EncryptedCertificate

public class DefaultEncryptedCertificate
extends java.lang.Object
implements EncryptedCertificate


Constructor Summary
DefaultEncryptedCertificate(java.lang.String id, java.lang.String key, java.lang.String certificate)
          Constructor for protocol '0' certificates
DefaultEncryptedCertificate(java.lang.String id, java.lang.String key, java.lang.String certificate, java.lang.Integer protocolVersion, java.lang.String magic)
           
 
Method Summary
 java.lang.String getCertificate()
          String that contains three lines:
 java.lang.String getID()
          ID of the trusted application that encrypted this certificate
 java.lang.String getMagicNumber()
          Magic Number for Transmission decryption validation.
 java.lang.Integer getProtocolVersion()
          Protocol version.
 java.lang.String getSecretKey()
          Secret Key for decrypting the certificate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEncryptedCertificate

public DefaultEncryptedCertificate(java.lang.String id,
                                   java.lang.String key,
                                   java.lang.String certificate)
Constructor for protocol '0' certificates

Parameters:
id - The application id
key - The application public key
certificate - The certificate string

DefaultEncryptedCertificate

public DefaultEncryptedCertificate(java.lang.String id,
                                   java.lang.String key,
                                   java.lang.String certificate,
                                   java.lang.Integer protocolVersion,
                                   java.lang.String magic)
Method Detail

getCertificate

public java.lang.String getCertificate()
Description copied from interface: EncryptedCertificate
String that contains three lines:

Encrypted with the secret key and Base64 encoded

Specified by:
getCertificate in interface EncryptedCertificate

getID

public java.lang.String getID()
Description copied from interface: EncryptedCertificate
ID of the trusted application that encrypted this certificate

Specified by:
getID in interface EncryptedCertificate

getSecretKey

public java.lang.String getSecretKey()
Description copied from interface: EncryptedCertificate
Secret Key for decrypting the certificate.

Encrypted with the private key of the trusted application and Base64 encoded

Specified by:
getSecretKey in interface EncryptedCertificate

getProtocolVersion

public java.lang.Integer getProtocolVersion()
Description copied from interface: EncryptedCertificate
Protocol version.

Not encrypted.

Specified by:
getProtocolVersion in interface EncryptedCertificate

getMagicNumber

public java.lang.String getMagicNumber()
Description copied from interface: EncryptedCertificate
Magic Number for Transmission decryption validation.

Encrypted with the private key of the trusted application and Base64 encoded

Specified by:
getMagicNumber in interface EncryptedCertificate


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.