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 Destroyable
public boolean isDestroyed()
isDestroyed
in interface Destroyable
public String name()
public char[] password()
public void close()
close
in interface AutoCloseable
Copyright © 2017–2018 earcam. All rights reserved.