Skip to content

Update JavaDoc#74

Merged
sangonzal merged 3 commits intodevfrom
sagonzal/javadoc
Jul 10, 2019
Merged

Update JavaDoc#74
sangonzal merged 3 commits intodevfrom
sagonzal/javadoc

Conversation

@sangonzal
Copy link
Copy Markdown
Contributor

Updating reference documentation


/**
* Representation of a single user account. If modifying this object, ensure it is compliant with
* cache persistent model
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be in the public docs? That seems like an internal comment?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed comment

import java.util.List;

/**
* Representation of application metadata.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Representation of [](start = 3, length = 18)

Generally not sure this makes a lot of sense. What is this metadata about?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just has foci status. Not a public API, so removing java doc comment.


/**
* Class to be used to acquire tokens for confidential client applications (Web Apps, Web APIs,
* and daemon applications).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should have an aka.ms link that points to the wiki or public docs describing the confidential client

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added links to the Java wiki in both PCA and CCA files.

@henrik-me
Copy link
Copy Markdown
Contributor

JM, would be great to get your comments on this

@henrik-me
Copy link
Copy Markdown
Contributor

// THE SOFTWARE.

nit: consider moving to the short versions of this.


Refers to: src/main/java/com/microsoft/aad/msal4j/UserAssertion.java:22 in 0ff475b. [](commit_id = 0ff475b, deletion_comment = False)

@jmprieur
Copy link
Copy Markdown

@sangonzal @henrik-me : I'll have a look at it, but I don't want to be the limiting factor.
Would that work if I proposed a PR later when I have time to look at it (maybe after you have merged, @sangonzal ) ?

@sangonzal
Copy link
Copy Markdown
Contributor Author

sangonzal commented Jul 1, 2019

@sangonzal @henrik-me : I'll have a look at it, but I don't want to be the limiting factor.
Would that work if I proposed a PR later when I have time to look at it (maybe after you have merged, @sangonzal ) ?

@jmprieur That works for me, Jean-marc. I will merge these changes in for now, and we can continue to improve the java docs incrementally.


/**
* @return user code.
* code which user needs to provide when authenticating at he verification URI
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"he" -> the

* Token and the Access Token's expiration time. Refresh Token
* property will be null for this overload.
* Acquires tokens from the authority configured in the application, for the confidential client
* itself (in the name of no user)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"in the name of no user" sounds weird ... like it was said by Master Yoda from Start Wars ))


/**
* Contains parameters used by the MSAL to access the cache_data.
* Interface representing state of token cache
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure about "state of the cache" - more like context of accessing cache

package com.microsoft.aad.msal4j;

/**
* Interface representing user credential used by downstream application in On-Behalf-Of flow
Copy link
Copy Markdown
Contributor

@SomkaPe SomkaPe Jul 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would describe it as - Interface representing delegated user identity and permissions used to propagate it through the request chain in On-Behalf-Of flow.

import lombok.experimental.Accessors;

/**
* State of token cache
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure about "state", more access context


/***
* Credential type containing an assertion representing user credential.
* Credential type containing an assertion representing user credential. Used as a parameter in
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as for interface

@sangonzal sangonzal merged commit 57040db into dev Jul 10, 2019
@sangonzal sangonzal deleted the sagonzal/javadoc branch July 12, 2019 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants