com.starteam
Class Server.EncryptionAlgorithm

java.lang.Object
  extended by com.starteam.EnumeratedValue
      extended by com.starteam.Server.EncryptionAlgorithm
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Server

public static final class Server.EncryptionAlgorithm
extends EnumeratedValue

This class provides a convenient place to refer to the different encryption algorithms that can be used for secure StarTeam connections. This class is used by various encryption methods on the connection and server objects.

See Also:
Serialized Form

Field Summary
static Server.EncryptionAlgorithm[] ALL
          All legal EncryptionAlgorithm values.
static Server.EncryptionAlgorithm NULL
          Specifies that no encryption be used.
static Server.EncryptionAlgorithm RC2_CBC
          Use RC2 block cipher in Cipher Block Chaining mode.
static Server.EncryptionAlgorithm RC2_CFB
          Use RC2 block cipher in Cipher Feedback mode.
static Server.EncryptionAlgorithm RC2_ECB
          Use RC2 block cipher in Electronic Codebook mode.
static Server.EncryptionAlgorithm RC4
          Use the RC4 stream cipher.
 
Method Summary
 boolean equals(java.lang.Object another)
          Returns true if the specified Object identifies the same exact EncryptionAlgorithm.
static Server.EncryptionAlgorithm fromID(int id)
          Gets the EncryptionAlgorithm value corresponding to the given ID.
 int getCode()
          Return the enum code for this object.
 java.lang.String getDisplayName()
          Returns the display name of the Encryption Algorithm.
 int getID()
           
 java.lang.String getName()
          Returns a internal name of the encryption algorithm.
 int hashCode()
          returns the hash code for this Encryption Algorithm
static Server.EncryptionAlgorithm maxSecurity(Server.EncryptionAlgorithm algA, Server.EncryptionAlgorithm algB)
          Given two security algorithms return the maximum of the two.
 java.lang.String toString()
          Returns a string representation of the encryption algorithm.
 
Methods inherited from class com.starteam.EnumeratedValue
addChild, assignParent, copy, disable, enable, findChild, getChildValues, getDebugString, getDepthInHierarchy, getDisplayNameTranslations, getInternalName, getParentValue, getSortOrder, hasChildValues, isClosedState, isDisabled, isEnabled, isEqualTo, isLeafValue, isRootValue, isSelectable, setAfter, setChildValues, setClosedState, setDisplayName, setDisplayNameTranslations, setEnabled, setInternalName, setSelectable, setSortOrder
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL

public static final Server.EncryptionAlgorithm NULL
Specifies that no encryption be used.


RC4

public static final Server.EncryptionAlgorithm RC4
Use the RC4 stream cipher.


RC2_ECB

public static final Server.EncryptionAlgorithm RC2_ECB
Use RC2 block cipher in Electronic Codebook mode.


RC2_CBC

public static final Server.EncryptionAlgorithm RC2_CBC
Use RC2 block cipher in Cipher Block Chaining mode.


RC2_CFB

public static final Server.EncryptionAlgorithm RC2_CFB
Use RC2 block cipher in Cipher Feedback mode.


ALL

public static final Server.EncryptionAlgorithm[] ALL
All legal EncryptionAlgorithm values.

Method Detail

getID

public int getID()

getCode

public int getCode()
Return the enum code for this object.

Overrides:
getCode in class EnumeratedValue
Returns:
the enum code for this object.

maxSecurity

public static Server.EncryptionAlgorithm maxSecurity(Server.EncryptionAlgorithm algA,
                                                     Server.EncryptionAlgorithm algB)
Given two security algorithms return the maximum of the two. Either one may be null and the return value may be null.

Parameters:
algA - the first security algorithm
algB - the second security algorithm
Returns:
the best encryption algorithm to use

fromID

public static Server.EncryptionAlgorithm fromID(int id)
Gets the EncryptionAlgorithm value corresponding to the given ID.

Parameters:
id - The ID of an EncryptionAlgorithm value.
Returns:
The corresponding EncryptionAlgorithm value, or null.

getName

public java.lang.String getName()
Returns a internal name of the encryption algorithm.


getDisplayName

public java.lang.String getDisplayName()
Returns the display name of the Encryption Algorithm.

Overrides:
getDisplayName in class EnumeratedValue
Returns:
the display name of this Encryption Algorithm

toString

public java.lang.String toString()
Returns a string representation of the encryption algorithm.

Overrides:
toString in class EnumeratedValue
Returns:
the display name

equals

public boolean equals(java.lang.Object another)
Returns true if the specified Object identifies the same exact EncryptionAlgorithm.

Overrides:
equals in class EnumeratedValue
Parameters:
another - the object to be compared to for equality
Returns:
true if the specified object identifies the same EncryptionAlgorithm as this one.

hashCode

public int hashCode()
returns the hash code for this Encryption Algorithm

Overrides:
hashCode in class EnumeratedValue
Returns:
a hash code for this Encryption Algorithm


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.