org.nhindirect.config.model
Enum BundleRefreshError

java.lang.Object
  extended by java.lang.Enum<BundleRefreshError>
      extended by org.nhindirect.config.model.BundleRefreshError
All Implemented Interfaces:
Serializable, Comparable<BundleRefreshError>

public enum BundleRefreshError
extends Enum<BundleRefreshError>

Enumeration of status for refresh error for trust bundles.

Since:
1.0
Author:
Greg Meyer

Enum Constant Summary
DOWNLOAD_TIMEOUT
          The download from the URL timed out.
INVALID_BUNDLE_FORMAT
          The bundle is either corrupt or in an unrecognized format.
INVALID_SIGNING_CERT
          The signing certificate specified is not a valid certificate.
NOT_FOUND
          The bundle was not found at the URL specified.
SUCCESS
          Successful update.
UNMATCHED_SIGNATURE
          The signature on the signed bundle did not validate successfully against the signing certificate.
 
Method Summary
static BundleRefreshError valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BundleRefreshError[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SUCCESS

public static final BundleRefreshError SUCCESS
Successful update.


NOT_FOUND

public static final BundleRefreshError NOT_FOUND
The bundle was not found at the URL specified.


DOWNLOAD_TIMEOUT

public static final BundleRefreshError DOWNLOAD_TIMEOUT
The download from the URL timed out.


INVALID_BUNDLE_FORMAT

public static final BundleRefreshError INVALID_BUNDLE_FORMAT
The bundle is either corrupt or in an unrecognized format.


INVALID_SIGNING_CERT

public static final BundleRefreshError INVALID_SIGNING_CERT
The signing certificate specified is not a valid certificate.


UNMATCHED_SIGNATURE

public static final BundleRefreshError UNMATCHED_SIGNATURE
The signature on the signed bundle did not validate successfully against the signing certificate.

Method Detail

values

public static BundleRefreshError[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (BundleRefreshError c : BundleRefreshError.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BundleRefreshError valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2014. All Rights Reserved.