Oracle Java Wireless Client

com.sun.ams
Interface CertificateInfo


public interface CertificateInfo

An interface that represents an Java ME certificate. Instances of this interface implementer can be obtained from CertificateInfoManager and CertificateManagerListener. Any custom implementations can not be used.


Field Summary
static int DOMAIN_IDENTIFIED
          The constant indicates identified third party security domain.
static int DOMAIN_MANUFACTURER
          The constant indicates manufacture security domain.
static int DOMAIN_OPERATOR
          The constant indicates operator security domain.
 
Method Summary
 int getDomain()
          Gets domain the certificate bound to.
 long getNotAfter()
          Gets the end of the key's validity period in milliseconds since Jan 1, 1970.
 long getNotBefore()
          Gets the start of the key's validity period in milliseconds since Jan 1, 1970.
 java.lang.String getOwner()
          Gets the distinguished name of the key's owner.
 boolean isEnabled()
          Gets the enabled status of this key.
 void setEnabled(boolean enabled)
          Sets the enabled status for this key.
 

Field Detail

DOMAIN_IDENTIFIED

static final int DOMAIN_IDENTIFIED
The constant indicates identified third party security domain.

See Also:
Constant Field Values

DOMAIN_OPERATOR

static final int DOMAIN_OPERATOR
The constant indicates operator security domain.

See Also:
Constant Field Values

DOMAIN_MANUFACTURER

static final int DOMAIN_MANUFACTURER
The constant indicates manufacture security domain.

See Also:
Constant Field Values
Method Detail

getDomain

int getDomain()
Gets domain the certificate bound to.

Returns:
the domain as one of the values: DOMAIN_IDENTIFIED, DOMAIN_OPERATOR or DOMAIN_MANUFACTURER

getOwner

java.lang.String getOwner()
Gets the distinguished name of the key's owner.

Returns:
name of key's owner

getNotBefore

long getNotBefore()
Gets the start of the key's validity period in milliseconds since Jan 1, 1970.

Returns:
start of a key's validity period.

getNotAfter

long getNotAfter()
Gets the end of the key's validity period in milliseconds since Jan 1, 1970.

Returns:
end of a key's validity period.

isEnabled

boolean isEnabled()
Gets the enabled status of this key.

Returns:
true if this key is enabled

setEnabled

void setEnabled(boolean enabled)
Sets the enabled status for this key.

Parameters:
enabled - true to enable, false to disable

Oracle Java Wireless Client

Copyright (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.