class Encryptor extends EncryptionErrorHandling with Logging
Utility class to handle encrypting data to string format and, optionally, handle base64 encoded data.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Encryptor
- Logging
- EncryptionErrorHandling
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
Encryptor(encryptor: Cipher)
- encryptor
the underlying Cipher object that allows to encrypt the data.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(data: String): Option[String]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def encrypt(data: String, pad: Boolean = true): Option[String]
- def encryptToSafeString(data: String, pad: Boolean = true): Option[String]
- def encryptToSafeString(data: Array[Byte]): Option[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
handle[T](f: ⇒ T, g: ⇒ Unit): Option[T]
- Attributes
- protected
- Definition Classes
- EncryptionErrorHandling
-
def
handle[T](f: ⇒ T, onException: (Throwable) ⇒ Unit): Option[T]
- Attributes
- protected
- Definition Classes
- EncryptionErrorHandling
-
def
handle[T](f: ⇒ T): Option[T]
- Attributes
- protected
- Definition Classes
- EncryptionErrorHandling
-
def
handler[T](onException: (Throwable) ⇒ Unit): PartialFunction[Throwable, Option[T]]
- Attributes
- protected
- Definition Classes
- EncryptionErrorHandling
-
def
handler[T]: PartialFunction[Throwable, Option[T]]
- Attributes
- protected
- Definition Classes
- EncryptionErrorHandling
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
lazy val
log: Logger
The
Loggerobject.The
Loggerobject. This logger will have the same name as the concrete class into which this trait is mixed-in.- Definition Classes
- Logging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )