com.atlassian.security.auth.trustedapps
Interface CurrentApplication

All Superinterfaces:
Application
All Known Implementing Classes:
DefaultCurrentApplication

public interface CurrentApplication
extends Application

Represents current application. This object is used when establishing trust with other servers and requesting them to perform privileged operations for this application.


Field Summary
static java.lang.String HEADER_TRUSTED_APP_CERT
          Deprecated. since 0.34 use TrustedApplicationUtils.Header.Request#CERT instead.
static java.lang.String HEADER_TRUSTED_APP_ERROR
          Deprecated. since 0.34 use TrustedApplicationUtils.Header.Response.ERROR instead.
static java.lang.String HEADER_TRUSTED_APP_ID
          Deprecated. since 0.34 use TrustedApplicationUtils.Header.Request.ID instead.
static java.lang.String HEADER_TRUSTED_APP_SECRET_KEY
          Deprecated. since 0.34 use TrustedApplicationUtils.Header.Request.SECRET_KEY instead.
static java.lang.String HEADER_TRUSTED_APP_STATUS
          Deprecated. since 0.34 use TrustedApplicationUtils.Header.Response.STATUS instead.
 
Method Summary
 EncryptedCertificate encode(java.lang.String userName)
          Generates a new certificate that will be sent to the remote server when asking to perform privileged operation for this application.
 
Methods inherited from interface com.atlassian.security.auth.trustedapps.Application
getID, getPublicKey
 

Field Detail

HEADER_TRUSTED_APP_ID

public static final java.lang.String HEADER_TRUSTED_APP_ID
Deprecated. since 0.34 use TrustedApplicationUtils.Header.Request.ID instead.

See Also:
Constant Field Values

HEADER_TRUSTED_APP_CERT

public static final java.lang.String HEADER_TRUSTED_APP_CERT
Deprecated. since 0.34 use TrustedApplicationUtils.Header.Request#CERT instead.

See Also:
Constant Field Values

HEADER_TRUSTED_APP_SECRET_KEY

public static final java.lang.String HEADER_TRUSTED_APP_SECRET_KEY
Deprecated. since 0.34 use TrustedApplicationUtils.Header.Request.SECRET_KEY instead.

See Also:
Constant Field Values

HEADER_TRUSTED_APP_ERROR

public static final java.lang.String HEADER_TRUSTED_APP_ERROR
Deprecated. since 0.34 use TrustedApplicationUtils.Header.Response.ERROR instead.

See Also:
Constant Field Values

HEADER_TRUSTED_APP_STATUS

public static final java.lang.String HEADER_TRUSTED_APP_STATUS
Deprecated. since 0.34 use TrustedApplicationUtils.Header.Response.STATUS instead.

See Also:
Constant Field Values
Method Detail

encode

public EncryptedCertificate encode(java.lang.String userName)
Generates a new certificate that will be sent to the remote server when asking to perform privileged operation for this application.

Returns:
encrypted certificate representing this application
Throws:
InvalidCertificateException


Copyright © 2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.