
public class Credential extends Object implements Destroyable, AutoCloseable
AutoCloseable to provoke compiler warnings, where the
implementation of close() calls destroy()| Constructor and Description |
|---|
Credential(String name,
char[] password) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
destroy() |
boolean |
isDestroyed() |
String |
name() |
char[] |
password() |
public Credential(String name, char[] password)
public void destroy()
destroy in interface Destroyablepublic boolean isDestroyed()
isDestroyed in interface Destroyablepublic String name()
public char[] password()
public void close()
close in interface AutoCloseableCopyright © 2017–2018 earcam. All rights reserved.