jautil.avatar
Class AvatarConfigDataset

java.lang.Object
  extended by jautil.avatar.AvatarConfigDataset

public class AvatarConfigDataset
extends java.lang.Object

A record of the avatar configuration data for a given JASigning instance. This record is constructed from two sources: the installations standard avatar properties file and the individual app/applet's JAOptions set


Constructor Summary
AvatarConfigDataset(JAOptions jaopts)
          Constructs a new avatar configuration data record for the current JASigning instance based on the installation avatar configuration settings, overridden and extended as appropriate by the current app/applet's JAOptions set.
 
Method Summary
 java.lang.String cacheableAvatarJarURL(java.lang.String av)
          Assuming the given avatar has Cacheable access, determines and returns the URL for (the cached copy of) the avatar's JAR file.
 java.lang.String directFilesBaseURL(java.lang.String av)
          Assuming the given avatar has Direct Files access, determines and returns the base URL for the avatar definition files.
 java.lang.String firstAvatar()
          Returns the name of the avatar to be displayed first by the present JASigning app/applet.
 java.lang.String[] getAvatars()
          Returns the complete list of avatars in this dataset.
 boolean isCacheableAvatar(java.lang.String av)
          Indicates whether the given avatar has Cacheable access, i.e.
 boolean isClassPathAvatar(java.lang.String av)
          Indicates whether the given avatar has Classpath access, i.e.
 boolean isDirectFilesAvatar(java.lang.String av)
          Indicates whether the given avatar has Direct Files access.
 boolean isValid(java.lang.String av)
          Checks whether the given string is a valid avatar name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvatarConfigDataset

public AvatarConfigDataset(JAOptions jaopts)
Constructs a new avatar configuration data record for the current JASigning instance based on the installation avatar configuration settings, overridden and extended as appropriate by the current app/applet's JAOptions set. set.

Method Detail

getAvatars

public java.lang.String[] getAvatars()
Returns the complete list of avatars in this dataset.


firstAvatar

public java.lang.String firstAvatar()
Returns the name of the avatar to be displayed first by the present JASigning app/applet.


isValid

public boolean isValid(java.lang.String av)
Checks whether the given string is a valid avatar name.


isClassPathAvatar

public boolean isClassPathAvatar(java.lang.String av)
Indicates whether the given avatar has Classpath access, i.e. whether it iis accessed via a JAR on the class path.


isDirectFilesAvatar

public boolean isDirectFilesAvatar(java.lang.String av)
Indicates whether the given avatar has Direct Files access.


isCacheableAvatar

public boolean isCacheableAvatar(java.lang.String av)
Indicates whether the given avatar has Cacheable access, i.e. whether is accessed via a cacheable JAR.


directFilesBaseURL

public java.lang.String directFilesBaseURL(java.lang.String av)
Assuming the given avatar has Direct Files access, determines and returns the base URL for the avatar definition files.


cacheableAvatarJarURL

public java.lang.String cacheableAvatarJarURL(java.lang.String av)
Assuming the given avatar has Cacheable access, determines and returns the URL for (the cached copy of) the avatar's JAR file.