Class Key
Object
Key
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Gets and returns the Key's key, which is a number for Caesar Cipher or an alphabet for a substitution ciphergetName()Gets and returns the Key's name, which represents the name of the user associated with it.getType()Gets and returns the Key's type, C for Caesar Cipher or S for substitution cipher.
-
Field Details
-
name
-
key
-
type
-
-
Constructor Details
-
Key
Constructor for Key.- Parameters:
name- name of the user the Key corresponds tokey- the meat of the encryption. A number for Caesar Cipher or an alphabet for a substitution ciphertype- single character string representing type of cipher. C for Caesar Cipher and S for substitution cipher.
-
-
Method Details
-
getName
Gets and returns the Key's name, which represents the name of the user associated with it.- Returns:
- String name
-
getKey
Gets and returns the Key's key, which is a number for Caesar Cipher or an alphabet for a substitution cipher- Returns:
- String key
-
getType
Gets and returns the Key's type, C for Caesar Cipher or S for substitution cipher.- Returns:
- String type
-