Skip to content
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

fix "error: ... is not public in TokenInfo; cannot be accessed… #59

Merged
merged 3 commits into from
Jul 26, 2024

Conversation

scpcom
Copy link
Contributor

@scpcom scpcom commented Jun 11, 2024

… from outside package"

Currently the only information you get with getTokenInfo is the list size (token count).
If someone imports PrivacyIDEA and tries to get more info the build fails:

import java.util.List;
import org.privacyidea.PrivacyIDEA;
import org.privacyidea.TokenInfo;

// ...

List<TokenInfo> tokenInfoList = privacyIDEA.getTokenInfo(username);
TokenInfo tokenInfo = tokenInfoList.get(0);
String type = tokenInfo.tokenType;

@nilsbehlen nilsbehlen merged commit 05d4623 into privacyidea:master Jul 26, 2024
1 check passed
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.

3 participants