|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CredentialEntry
This interface describe main functionalities of a credential entry
Nested Class Summary | |
---|---|
static class |
CredentialEntry.EntryType
Specify the binding type of a credential entry |
Method Summary | |
---|---|
String |
getAttribute(String name)
Get named credential metadata value |
Map<String,String> |
getAttributes()
Get a copy of all credential metadata Using Properties.setProperty() on returned object only change value locally. |
Credential |
getCredential()
Get credential of this entry |
String |
getDescription()
Get optional description |
String |
getName()
Get name of the credential entry |
Scope |
getScope()
Get visibility scope of the credential entry |
CredentialEntry.EntryType |
getType()
Get binding type of this entry |
void |
removeAttribute(String name)
Remove named credential metadata If named metadata does not exist, this method retuns normally |
void |
setAttribute(String name,
String value)
Set a credential metadata If value is null, it equals to removeAttribute(String) |
void |
setCredential(Credential c)
Set credential into this entry |
void |
setDescription(String newDescription)
Set a new description |
Method Detail |
---|
String getName()
CredentialEntry.EntryType getType()
Scope getScope()
String getDescription()
null
if not setvoid setDescription(String newDescription)
newDescription
- a new descriptionCredential getCredential()
void setCredential(Credential c)
c
- credential to be setString getAttribute(String name)
name
- the name of credential metadata
void setAttribute(String name, String value)
removeAttribute(String)
name
- the name of credential metadatavalue
- the value of credential metadatavoid removeAttribute(String name)
name
- the name of credential metadata to be removeMap<String,String> getAttributes()
setAttribute(String, String)
does.
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |