AIM - How does the annotation function in the Java Password SDK work?
83
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 12:57 PM
Question
How does the annotation function in the Java Password SDK work?
Environment
10.5;10.10;11.5;11.6;11.7;12.0;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Central Credential Provider
Answer
The purpose of the annotation is to reduce the amount of classes/jar's that need to be stored for a password call. Imagine the internal workings of java app works like class A calls class B then calls class C. In complex applications this "stack" of calls can be more then 30 iterations and may not use the same set of classes in each call for the password. When the provider does hash authentication without the annotation it will need ALL classes in the call to have their hash stored. With the annotation only the classes with it are now hashed assuming the other classes in the stack are safe.
A common issue with initial annotation configuration is that the correct classes are not chosen and leaves the app-id open to the system. Typically this happens when a common piece of code like a customers SDK wrapper is chosen to be annotated but no other class is chosen. In this circumstance any class class can call the wrapper since the wrapper is the only class being validated.
Additional Information
Details
Q:
How does the annotation function in the Java Password SDK work?
A:
The purpose of the annotation is to reduce the amount of classes/jar's that need to be stored for a password call. Imagine the internal workings of java app works like class A calls class B then calls class C. In complex applications this "stack" of calls can be more then 30 iterations and may not use the same set of classes in each call for the password. When the provider does hash authentication without the annotation it will need ALL classes in the call to have their hash stored. With the annotation only the classes with it are now hashed assuming the other classes in the stack are safe.
A common issue with initial annotation configuration is that the correct classes are not chosen and leaves the app-id open to the system. Typically this happens when a common piece of code like a customers SDK wrapper is chosen to be annotated but no other class is chosen. In this circumstance any class class can call the wrapper since the wrapper is the only class being validated.