|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.higgins.idas.common.AuthNNamePasswordMaterials
Simple username and password authorization materials which may be used in
IContext.open(Object)
| Field Summary | |
|---|---|
static URI |
ATTR_MANAGED_URI
Attribute URI for the attribute used to manage the secrets for this type of materials |
static URI |
ATTR_TYPE_USERNAME
|
| Constructor Summary | |
|---|---|
AuthNNamePasswordMaterials(org.eclipse.higgins.idas.api.IContext context,
String username,
String password)
Constructs an AuthNNamePasswordMaterials by taking the username and password as String objects. |
|
| Method Summary | |
|---|---|
org.eclipse.higgins.idas.api.IAttribute |
addAttribute(org.eclipse.higgins.idas.api.IAttribute copyFrom)
|
org.eclipse.higgins.idas.api.IAttribute |
addAttribute(URI attrID)
|
boolean |
equals(org.eclipse.higgins.idas.api.IHasAttributes attributes)
|
org.eclipse.higgins.idas.api.IAttribute |
getAttribute(URI attrID)
|
Iterator |
getAttributes()
|
org.eclipse.higgins.idas.api.IAttribute |
getManagedAttr()
|
URI |
getManagedAttrID()
|
String |
getPassword()
Returns the password. |
org.eclipse.higgins.idas.api.ISingleValuedAttribute |
getSingleValuedAttribute(URI attrID)
|
String |
getUsername()
Returns the username. |
void |
removeAttribute(URI attrID)
|
void |
removeAttributeValue(org.eclipse.higgins.idas.api.IAttribute attr)
|
void |
removeAttributeValue(URI attrID,
Object value)
|
String |
toString()
This API is used by applications in debug or auditing scenarios and is not intended to reveal the password. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final URI ATTR_TYPE_USERNAME
public static final URI ATTR_MANAGED_URI
| Constructor Detail |
public AuthNNamePasswordMaterials(org.eclipse.higgins.idas.api.IContext context,
String username,
String password)
throws org.eclipse.higgins.idas.api.IdASException
context - needed in order to build attributes from username and passwordusername - name of identitypassword - password of identity
org.eclipse.higgins.idas.api.IdASException| Method Detail |
public String getUsername()
throws org.eclipse.higgins.idas.api.IdASException
IAttribute usernameAttr = thisMaterials.getAttribute(new URI(thisMaterials.ATTR_TYPE_USERNAME));
org.eclipse.higgins.idas.api.IdASException
public String getPassword()
throws org.eclipse.higgins.idas.api.IdASException
IAttribute passwordAttr = thisMaterials.getAttribute(new URI(thisMaterials.ATTR_TYPE_PASSWORD));
org.eclipse.higgins.idas.api.IdASExceptionpublic String toString()
public org.eclipse.higgins.idas.api.IAttribute addAttribute(URI attrID)
throws org.eclipse.higgins.idas.api.IdASException,
org.eclipse.higgins.idas.api.InvalidTypeException
addAttribute in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.InvalidTypeException
public org.eclipse.higgins.idas.api.IAttribute addAttribute(org.eclipse.higgins.idas.api.IAttribute copyFrom)
throws org.eclipse.higgins.idas.api.IdASException
addAttribute in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASException
public org.eclipse.higgins.idas.api.IAttribute getAttribute(URI attrID)
throws org.eclipse.higgins.idas.api.IdASException
getAttribute in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASException
public Iterator getAttributes()
throws org.eclipse.higgins.idas.api.IdASException
getAttributes in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASException
public org.eclipse.higgins.idas.api.ISingleValuedAttribute getSingleValuedAttribute(URI attrID)
throws org.eclipse.higgins.idas.api.IdASException,
org.eclipse.higgins.idas.api.NotSingleValuedAttributeException
getSingleValuedAttribute in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.NotSingleValuedAttributeException
public void removeAttribute(URI attrID)
throws org.eclipse.higgins.idas.api.IdASException
removeAttribute in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASException
public void removeAttributeValue(URI attrID,
Object value)
throws org.eclipse.higgins.idas.api.IdASException
removeAttributeValue in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASException
public void removeAttributeValue(org.eclipse.higgins.idas.api.IAttribute attr)
throws org.eclipse.higgins.idas.api.IdASException
removeAttributeValue in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASException
public boolean equals(org.eclipse.higgins.idas.api.IHasAttributes attributes)
throws org.eclipse.higgins.idas.api.IdASException
equals in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASExceptionpublic org.eclipse.higgins.idas.api.IAttribute getManagedAttr()
getManagedAttr in interface org.eclipse.higgins.idas.api.IAuthNAttributesMaterialspublic URI getManagedAttrID()
getManagedAttrID in interface org.eclipse.higgins.idas.api.IAuthNAttributesMaterials
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||