-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to get the target and the certificate path from X509CertPath #374
Allow to get the target and the certificate path from X509CertPath #374
Conversation
IMHO it would be sufficient to add a getCertPath method to |
@sophokles73 you are right, its quite simpler in this way, I changed all the code, thanks! |
* | ||
* @return The path. | ||
*/ | ||
public CertPath getPath() { return path; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please put the method body on its own line (like in the the rest of the class)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the method body is already in the same line as the method signature, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what I mean is:
public CertPath getPath() {
return path;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, I placed it this way following the style of getName
, I'll change it soon, thanks.
/** | ||
* Gets the asserted identity of this certificate path. | ||
* | ||
* @return The subject. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not the subject but the whole certificate
@@ -664,7 +664,7 @@ public Principal getPeerIdentity() { | |||
/** | |||
* Sets the authenticated peer's identity. | |||
* | |||
* @param the identity | |||
* @param peerIdentity the identity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't seem to be related to the other changes.
next time, please create a separate PR for it
Signed-off-by: Alexis Hernandez <alexis22229@gmail.com>
@sophokles73 I just noticed the |
Signed-off-by: Alexis Hernandez alexis22229@gmail.com